#include "hi_asm_define.h"
	.arch armv7-a
	.fpu softvfp
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"avs.c"
	.text
	.align	2
	.global	avs_u_v
	.type	avs_u_v, %function
avs_u_v:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	mov	r6, r1
	mov	r5, r2
	bl	BsGet
	str	r6, [sp]
	mov	r2, r5
	ldr	r1, .L2
	mov	r4, r0
	mov	r3, r0
	mov	r0, #7
	bl	dprint_vfmw
	mov	r0, r4
	sub	sp, fp, #24
	ldmfd	sp, {r4, r5, r6, fp, sp, pc}
.L3:
	.align	2
.L2:
	.word	.LC0
	UNWIND(.fnend)
	.size	avs_u_v, .-avs_u_v
	.align	2
	.global	avs_f_v
	.type	avs_f_v, %function
avs_f_v:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	mov	r6, r1
	mov	r5, r2
	bl	BsGet
	str	r6, [sp]
	mov	r2, r5
	ldr	r1, .L5
	mov	r4, r0
	mov	r3, r0
	mov	r0, #7
	bl	dprint_vfmw
	mov	r0, r4
	sub	sp, fp, #24
	ldmfd	sp, {r4, r5, r6, fp, sp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	UNWIND(.fnend)
	.size	avs_f_v, .-avs_f_v
	.align	2
	.global	avs_ue_v
	.type	avs_ue_v, %function
avs_ue_v:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #8)
	sub	sp, sp, #8
	mov	r6, r1
	mov	r1, #32
	mov	r7, r0
	bl	BsShow
	bl	ZerosMS_32
	cmp	r0, #31
	mov	r4, r0
	mvnhi	r5, #0
	movhi	r4, #32
	bls	.L11
.L8:
	str	r4, [sp]
	mov	r2, r6
	mov	r3, r5
	ldr	r1, .L12
	mov	r0, #7
	bl	dprint_vfmw
	mov	r0, r5
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L11:
	add	r5, r4, #1
	mov	r1, r4
	mov	r0, r7
	mov	r4, r4, asl #1
	bl	BsSkip
	mov	r1, r5
	mov	r0, r7
	add	r4, r4, #1
	bl	BsShow
	mov	r1, r5
	sub	r5, r0, #1
	mov	r0, r7
	bl	BsSkip
	b	.L8
.L13:
	.align	2
.L12:
	.word	.LC0
	UNWIND(.fnend)
	.size	avs_ue_v, .-avs_ue_v
	.align	2
	.global	avs_se_v
	.type	avs_se_v, %function
avs_se_v:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	mov	r6, r1
	mov	r1, #32
	mov	r7, r0
	bl	BsShow
	bl	ZerosMS_32
	cmp	r0, #31
	mov	r4, r0
	mvnhi	r5, #-2147483648
	movhi	r4, #32
	bls	.L19
.L15:
	str	r4, [sp]
	mov	r2, r6
	mov	r3, r5
	ldr	r1, .L20
	mov	r0, #7
	bl	dprint_vfmw
	mov	r0, r5
	sub	sp, fp, #32
	ldmfd	sp, {r4, r5, r6, r7, r8, fp, sp, pc}
.L19:
	add	r8, r4, #1
	mov	r1, r4
	mov	r0, r7
	mov	r4, r4, asl #1
	bl	BsSkip
	mov	r1, r8
	mov	r0, r7
	add	r4, r4, #1
	bl	BsShow
	mov	r1, r8
	sub	r0, r0, #1
	tst	r0, #1
	mov	r0, r0, asr #1
	addne	r5, r0, #1
	rsbeq	r5, r0, #0
	mov	r0, r7
	bl	BsSkip
	b	.L15
.L21:
	.align	2
.L20:
	.word	.LC0
	UNWIND(.fnend)
	.size	avs_se_v, .-avs_se_v
	.align	2
	.global	AVS_next_start_code
	.type	AVS_next_start_code, %function
AVS_next_start_code:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	mov	r5, r0
	bl	BsToNextByte
	mov	r0, r5
	bl	BsResidBits
	add	r6, r0, #7
	cmp	r0, #0
	movlt	r0, r6
	mov	r6, r0, asr #3
	cmp	r6, #3
	subgt	r6, r6, #3
	movgt	r4, #0
	bgt	.L25
	b	.L26
.L31:
	bl	BsSkip
	cmp	r4, r6
	beq	.L26
.L25:
	mov	r1, #24
	mov	r0, r5
	bl	BsShow
	add	r4, r4, #1
	mov	r1, #8
	mov	r3, r0
	cmp	r3, #1
	mov	r0, r5
	bne	.L31
	mov	r0, r3
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L26:
	mov	r3, #0
	mov	r0, r3
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_next_start_code, .-AVS_next_start_code
	.align	2
	.global	AVS_sequence_header
	.type	AVS_sequence_header, %function
AVS_sequence_header:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #8)
	sub	sp, sp, #8
	add	r6, r0, #12288
	mov	r4, r1
	ldr	r2, .L42
	ldr	r5, [r6, #3176]
	mov	r1, #32
	ldr	r3, [r6, #2784]
	mov	r7, r0
	bic	r3, r3, #65536
	mov	r0, r5
	str	r3, [r6, #2784]
	bl	avs_f_v
	ldr	r2, .L42+4
	mov	r1, #8
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+8
	mov	r1, #8
	str	r0, [r4, #16]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+12
	mov	r1, #1
	str	r0, [r4, #20]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+16
	mov	r1, #14
	strb	r0, [r4, #15]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+20
	mov	r1, #14
	str	r0, [r4, #24]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+24
	mov	r1, #2
	str	r0, [r4, #28]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+28
	mov	r1, #3
	strb	r0, [r4, #11]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+32
	mov	r1, #4
	strb	r0, [r4, #12]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+36
	mov	r1, #4
	strb	r0, [r4, #13]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+40
	mov	r1, #18
	strb	r0, [r4, #14]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+44
	mov	r1, #1
	str	r0, [r4, #32]
	mov	r0, r5
	bl	avs_f_v
	ldr	r2, .L42+48
	mov	r1, #12
	strb	r0, [r4, #10]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+52
	mov	r1, #1
	str	r0, [r4, #36]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+44
	mov	r1, #1
	strb	r0, [r4, #9]
	mov	r0, r5
	bl	avs_f_v
	ldr	r2, .L42+56
	mov	r1, #18
	strb	r0, [r4, #10]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L42+60
	mov	r1, #3
	str	r0, [r4, #40]
	mov	r0, r5
	bl	avs_u_v
	ldrb	r3, [r4, #14]	@ zero_extendqisi2
	cmp	r3, #15
	ldrls	r2, .L42+64
	mvnhi	r3, #0
	ldrls	r3, [r2, r3, asl #2]
	strb	r0, [r4, #8]
	str	r3, [r4, #44]
	ldr	r3, [r4, #24]
	ldr	r2, [r6, #2824]
	cmp	r3, r2
	beq	.L41
.L35:
	ldr	r3, .L42+68
	mov	r1, #1
	str	r1, [r6, #2796]
	ldr	r5, [r3]
	cmp	r5, #0
	beq	.L36
	ldr	r1, [r4, #24]
	mov	r3, #8
	ldr	lr, [r6, #2828]
	ldr	ip, [r4, #28]
	strh	r2, [fp, #-36]	@ movhi
	sub	r2, fp, #36
	strh	r1, [fp, #-32]	@ movhi
	mov	r1, #2
	ldr	r0, [r7, #4]
	strh	lr, [fp, #-34]	@ movhi
	strh	ip, [fp, #-30]	@ movhi
	blx	r5
.L36:
	mov	r1, r4
	mov	r2, #376
	add	r0, r6, #2800
	bl	memcpy
	ldr	r2, [r6, #2792]
	ldr	r3, [r6, #2784]
	mov	r0, #1
	add	r2, r2, r0
	str	r0, [r6, #2788]
	orr	r3, r3, #65536
	str	r2, [r6, #2792]
	str	r3, [r6, #2784]
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L41:
	ldr	r1, [r4, #28]
	ldr	r3, [r6, #2828]
	cmp	r1, r3
	bne	.L35
	b	.L36
.L43:
	.align	2
.L42:
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LANCHOR0
	.word	g_event_report
	UNWIND(.fnend)
	.size	AVS_sequence_header, .-AVS_sequence_header
	.align	2
	.global	AVS_i_picture_header
	.type	AVS_i_picture_header, %function
AVS_i_picture_header:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r3, .L83
	mov	r6, r0
	ldr	r5, [r0, #544]
	mov	r4, r1
	add	r0, r1, #80
	mov	r2, #272
	ldr	r3, [r3, #48]
	mov	r1, #0
	blx	r3
	ldr	r3, [r6, #152]
	ldr	r2, .L83+4
	mov	r1, #32
	bic	r3, r3, #262144
	mov	r0, r5
	str	r3, [r6, #152]
	bl	avs_f_v
	mov	r0, r5
	ldr	r2, .L83+8
	mov	r1, #16
	bl	avs_u_v
	ldr	r3, [r4, #16]
	cmp	r3, #72
	str	r0, [r4, #96]
	beq	.L75
.L45:
	ldr	r2, .L83+12
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	uxtb	r0, r0
	strb	r0, [r4, #90]
	cmp	r0, #1
	beq	.L76
.L46:
	ldr	r2, .L83+16
	mov	r1, #1
	mov	r0, r5
	bl	avs_f_v
	ldr	r2, .L83+20
	mov	r1, #8
	str	r0, [r4, #108]
	mov	r0, r5
	bl	avs_u_v
	ldrb	r3, [r4, #9]	@ zero_extendqisi2
	cmp	r3, #1
	str	r0, [r4, #112]
	beq	.L77
.L47:
	ldr	r2, .L83+24
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	ldrb	r3, [r4, #15]	@ zero_extendqisi2
	cmp	r3, #1
	uxtb	r0, r0
	strb	r0, [r4, #80]
	streqb	r3, [r4, #80]
	beq	.L49
	cmp	r0, #0
	beq	.L78
.L49:
	mov	r3, #1
	strb	r3, [r4, #81]
.L50:
	ldr	r2, .L83+28
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L83+32
	mov	r1, #1
	strb	r0, [r4, #82]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L83+36
	mov	r1, #1
	strb	r0, [r4, #83]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L83+40
	mov	r1, #6
	strb	r0, [r4, #84]
	mov	r0, r5
	bl	avs_u_v
	ldrh	r3, [r4, #80]
	cmp	r3, #0
	strb	r0, [r4, #85]
	beq	.L79
.L51:
	ldr	r2, .L83+44
	mov	r1, #4
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L83+48
	mov	r1, #1
	strb	r0, [r4, #87]
	mov	r0, r5
	bl	avs_u_v
	mov	r3, #0
	str	r3, [r4, #120]
	str	r3, [r4, #124]
	uxtb	r0, r0
	strb	r0, [r4, #88]
	cmp	r0, r3
	beq	.L80
.L53:
	ldr	r3, [r4, #16]
	cmp	r3, #72
	beq	.L81
.L55:
	mov	r0, #1
	mov	r3, #0
	strb	r0, [r4, #93]
	str	r3, [r4, #348]
	ldr	r3, [r6, #152]
	orr	r3, r3, #262144
	str	r3, [r6, #152]
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L78:
	ldr	r2, .L83+52
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	strb	r0, [r4, #81]
	b	.L50
.L80:
	ldr	r2, .L83+56
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	uxtb	r0, r0
	strb	r0, [r4, #89]
	cmp	r0, #0
	beq	.L53
	ldr	r1, .L83+60
	mov	r0, r5
	bl	avs_se_v
	ldr	r1, .L83+64
	str	r0, [r4, #120]
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r4, #124]
	b	.L53
.L79:
	ldr	r2, .L83+68
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	strb	r0, [r4, #86]
	b	.L51
.L81:
	ldr	r2, .L83+72
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	cmp	r0, #0
	str	r0, [r4, #128]
	bne	.L56
.L65:
	mov	r0, r5
	ldr	r2, .L83+76
	mov	r1, #1
	bl	avs_u_v
	str	r0, [r4, #332]
	b	.L55
.L75:
	ldr	r2, .L83+16
	mov	r1, #1
	mov	r0, r5
	bl	avs_f_v
	ldr	r2, .L83+80
	mov	r1, #7
	str	r0, [r4, #108]
	mov	r0, r5
	bl	avs_u_v
	ldr	r3, [r4, #96]
	mov	r2, #1
	strb	r2, [r4]
	str	r0, [r4, #100]
	orr	r0, r0, r3, asl #7
	str	r0, [r4, #96]
	b	.L45
.L76:
	ldr	r2, .L83+84
	mov	r1, #24
	mov	r0, r5
	bl	avs_u_v
	str	r0, [r4, #104]
	b	.L46
.L77:
	ldr	r1, .L83+88
	mov	r0, r5
	bl	avs_ue_v
	str	r0, [r4, #116]
	b	.L47
.L56:
	ldr	r2, .L83+92
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L83+96
	mov	r1, #1
	str	r0, [r4, #132]
	mov	r0, r5
	bl	avs_u_v
	cmp	r0, #0
	str	r0, [r4, #136]
	beq	.L82
.L57:
	ldr	r2, .L83+100
	mov	r1, #2
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L83+104
	mov	r1, #2
	str	r0, [r4, #148]
	mov	r0, r5
	bl	avs_u_v
	ldr	r3, [r4, #148]
	cmp	r3, #1
	str	r0, [r4, #152]
	beq	.L60
	ldr	r2, [r4, #132]
	cmp	r2, #0
	cmpeq	r3, #3
	beq	.L60
	cmp	r3, #2
	addeq	r7, r4, #176
	bne	.L65
.L64:
	add	r8, r4, #200
.L63:
	ldr	r1, .L83+108
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r7, #4]!
	cmp	r7, r8
	bne	.L63
	b	.L65
.L82:
	ldr	r1, .L83+112
	mov	r0, r5
	bl	avs_se_v
	ldr	r1, .L83+116
	str	r0, [r4, #140]
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r4, #144]
	b	.L57
.L60:
	add	r8, r4, #152
	add	r7, r4, #176
.L59:
	ldr	r1, .L83+120
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r8, #4]!
	cmp	r8, r7
	bne	.L59
	ldr	r3, [r4, #148]
	cmp	r3, #2
	beq	.L64
	ldr	r2, [r4, #132]
	cmp	r2, #0
	cmpeq	r3, #3
	bne	.L65
	b	.L64
.L84:
	.align	2
.L83:
	.word	vfmw_Osal_Func_Ptr_S
	.word	.LC17
	.word	.LC18
	.word	.LC20
	.word	.LC12
	.word	.LC22
	.word	.LC24
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC16
	.word	.LC31
	.word	.LC25
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC30
	.word	.LC35
	.word	.LC36
	.word	.LC19
	.word	.LC21
	.word	.LC23
	.word	.LC37
	.word	.LC38
	.word	.LC41
	.word	.LC42
	.word	.LC44
	.word	.LC39
	.word	.LC40
	.word	.LC43
	UNWIND(.fnend)
	.size	AVS_i_picture_header, .-AVS_i_picture_header
	.align	2
	.global	AVS_pb_picture_header
	.type	AVS_pb_picture_header, %function
AVS_pb_picture_header:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r3, .L137
	mov	r6, r0
	ldr	r5, [r0, #544]
	mov	r4, r1
	add	r0, r1, #80
	mov	r2, #272
	ldr	r3, [r3, #48]
	mov	r1, #0
	blx	r3
	ldr	r3, [r6, #152]
	ldr	r2, .L137+4
	mov	r1, #32
	bic	r3, r3, #262144
	mov	r0, r5
	str	r3, [r6, #152]
	bl	avs_f_v
	mov	r0, r5
	ldr	r2, .L137+8
	mov	r1, #16
	bl	avs_u_v
	ldr	r3, [r4, #16]
	cmp	r3, #72
	str	r0, [r4, #96]
	beq	.L129
.L86:
	ldr	r2, .L137+12
	mov	r1, #2
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+16
	mov	r1, #8
	strb	r0, [r4, #91]
	mov	r0, r5
	bl	avs_u_v
	ldrb	r3, [r4, #9]	@ zero_extendqisi2
	cmp	r3, #1
	str	r0, [r4, #112]
	beq	.L130
.L87:
	ldr	r2, .L137+20
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	uxtb	r0, r0
	strb	r0, [r4, #80]
	cmp	r0, #0
	movne	r3, #1
	strneb	r3, [r4, #81]
	beq	.L131
.L89:
	ldr	r2, .L137+24
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+28
	mov	r1, #1
	strb	r0, [r4, #82]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+32
	mov	r1, #1
	strb	r0, [r4, #83]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+36
	mov	r1, #6
	strb	r0, [r4, #84]
	mov	r0, r5
	bl	avs_u_v
	ldrb	r3, [r4, #91]	@ zero_extendqisi2
	cmp	r3, #2
	strb	r0, [r4, #85]
	beq	.L132
.L90:
	ldr	r2, .L137+40
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	strb	r0, [r4, #93]
.L92:
	ldr	r2, .L137+44
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	ldrb	r2, [r4, #91]	@ zero_extendqisi2
	mov	r3, #0
	str	r3, [r4, #340]
	cmp	r2, #2
	str	r3, [r4, #344]
	strb	r0, [r4, #94]
	beq	.L133
	ldr	r2, .L137+48
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	str	r0, [r4, #340]
.L94:
	ldrb	r3, [r4, #81]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L95
	ldr	r3, [r4, #16]
	cmp	r3, #72
	beq	.L96
.L95:
	mov	r3, #0
	str	r3, [r4, #340]
	str	r3, [r4, #344]
.L96:
	ldr	r2, .L137+52
	mov	r1, #2
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+56
	mov	r1, #1
	strb	r0, [r4, #87]
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+60
	mov	r1, #1
	strb	r0, [r4, #86]
	mov	r0, r5
	bl	avs_u_v
	mov	r3, #0
	str	r3, [r4, #120]
	str	r3, [r4, #124]
	uxtb	r0, r0
	strb	r0, [r4, #88]
	cmp	r0, r3
	beq	.L134
.L98:
	ldr	r3, [r4, #16]
	cmp	r3, #72
	beq	.L135
.L100:
	ldrb	r3, [r4, #91]	@ zero_extendqisi2
	mov	r0, #1
	cmp	r3, #1
	movne	r3, #2
	str	r3, [r4, #348]
	ldr	r3, [r6, #152]
	orr	r3, r3, #262144
	str	r3, [r6, #152]
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L132:
	ldrb	r3, [r4, #81]	@ zero_extendqisi2
	cmp	r3, #1
	streqb	r3, [r4, #93]
	bne	.L90
	b	.L92
.L131:
	ldr	r2, .L137+64
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	uxtb	r0, r0
	strb	r0, [r4, #81]
	cmp	r0, #0
	bne	.L89
	ldr	r2, .L137+68
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	strb	r0, [r4, #92]
	b	.L89
.L134:
	ldr	r2, .L137+72
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	uxtb	r0, r0
	strb	r0, [r4, #89]
	cmp	r0, #0
	beq	.L98
	ldr	r1, .L137+76
	mov	r0, r5
	bl	avs_se_v
	ldr	r1, .L137+80
	str	r0, [r4, #120]
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r4, #124]
	b	.L98
.L133:
	ldr	r2, .L137+84
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	str	r0, [r4, #344]
	b	.L94
.L135:
	ldr	r2, .L137+88
	mov	r1, #1
	mov	r0, r5
	bl	avs_u_v
	cmp	r0, #1
	mov	r7, r0
	str	r0, [r4, #128]
	beq	.L101
.L110:
	mov	r0, r5
	ldr	r2, .L137+92
	mov	r1, #1
	bl	avs_u_v
	str	r0, [r4, #332]
	b	.L100
.L129:
	ldr	r2, .L137+96
	mov	r1, #1
	mov	r0, r5
	bl	avs_f_v
	ldr	r2, .L137+100
	mov	r1, #7
	str	r0, [r4, #108]
	mov	r0, r5
	bl	avs_u_v
	ldr	r3, [r4, #96]
	mov	r2, #1
	strb	r2, [r4]
	str	r0, [r4, #100]
	orr	r0, r0, r3, asl #7
	str	r0, [r4, #96]
	b	.L86
.L130:
	ldr	r1, .L137+104
	mov	r0, r5
	bl	avs_ue_v
	str	r0, [r4, #116]
	b	.L87
.L101:
	mov	r1, r0
	ldr	r2, .L137+108
	mov	r0, r5
	bl	avs_u_v
	mov	r1, r7
	ldr	r2, .L137+112
	str	r0, [r4, #132]
	mov	r0, r5
	bl	avs_u_v
	cmp	r0, #0
	str	r0, [r4, #136]
	beq	.L136
.L102:
	ldr	r2, .L137+116
	mov	r1, #2
	mov	r0, r5
	bl	avs_u_v
	ldr	r2, .L137+120
	mov	r1, #2
	str	r0, [r4, #148]
	mov	r0, r5
	bl	avs_u_v
	ldr	r3, [r4, #148]
	cmp	r3, #1
	str	r0, [r4, #152]
	beq	.L105
	ldr	r2, [r4, #132]
	cmp	r2, #0
	cmpeq	r3, #3
	beq	.L105
	cmp	r3, #2
	addeq	r7, r4, #176
	bne	.L110
.L109:
	add	r8, r4, #200
.L108:
	ldr	r1, .L137+124
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r7, #4]!
	cmp	r7, r8
	bne	.L108
	b	.L110
.L105:
	add	r8, r4, #152
	add	r7, r4, #176
.L104:
	ldr	r1, .L137+128
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r8, #4]!
	cmp	r8, r7
	bne	.L104
	ldr	r3, [r4, #148]
	cmp	r3, #2
	beq	.L109
	ldr	r2, [r4, #132]
	cmp	r2, #0
	cmpeq	r3, #3
	bne	.L110
	b	.L109
.L136:
	ldr	r1, .L137+132
	mov	r0, r5
	bl	avs_se_v
	ldr	r1, .L137+136
	str	r0, [r4, #140]
	mov	r0, r5
	bl	avs_se_v
	str	r0, [r4, #144]
	b	.L102
.L138:
	.align	2
.L137:
	.word	vfmw_Osal_Func_Ptr_S
	.word	.LC45
	.word	.LC18
	.word	.LC46
	.word	.LC22
	.word	.LC24
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC48
	.word	.LC49
	.word	.LC51
	.word	.LC16
	.word	.LC30
	.word	.LC31
	.word	.LC25
	.word	.LC47
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC50
	.word	.LC35
	.word	.LC36
	.word	.LC12
	.word	.LC19
	.word	.LC23
	.word	.LC37
	.word	.LC38
	.word	.LC41
	.word	.LC42
	.word	.LC44
	.word	.LC43
	.word	.LC39
	.word	.LC40
	UNWIND(.fnend)
	.size	AVS_pb_picture_header, .-AVS_pb_picture_header
	.align	2
	.global	AVS_user_data
	.type	AVS_user_data, %function
AVS_user_data:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r4, r0, #12288
	mov	r6, r1
	mov	r5, r0
	ldr	r2, .L178
	ldr	r0, [r4, #3176]
	mov	r1, #32
	bl	avs_f_v
	ldr	r3, [r4, #2784]
	cmp	r6, #0
	orr	r3, r3, #1048576
	str	r3, [r4, #2784]
	bne	.L140
	ldr	r1, [r4, #3468]
	cmp	r1, #0
	beq	.L141
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	str	r6, [r4, #3468]
.L141:
	ldr	r0, [r5, #4]
	bl	GetUsd
	cmp	r0, #0
	str	r0, [r4, #3468]
	beq	.L151
	ldr	r3, [r5, #12]
	add	r0, r0, #1056
	mov	r1, #10
	add	r6, r5, #16384
	ldr	r7, .L178+4
	ldrd	r2, [r3, #64]
	strd	r2, [r0]
	ldr	r3, [r4, #3468]
	str	r1, [r3, #1040]
	ldr	r3, [r4, #3468]
	ldr	r2, [r4, #2792]
	str	r2, [r3, #1044]
	ldr	r2, [r4, #3468]
	ldr	r3, [r6, #184]
	sub	r3, r3, #4
	str	r3, [r2, #1052]
	ldr	r0, [r4, #3468]
	ldr	r2, [r0, #1052]
	cmp	r2, #1024
	movgt	r3, #1024
	strgt	r3, [r0, #1052]
	ldrgt	r0, [r4, #3468]
	ldr	r1, [r6, #168]
	ldr	r3, [r7, #52]
	ldrgt	r2, [r0, #1052]
	add	r1, r1, #4
	blx	r3
	ldrb	r3, [r6, #174]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L146
	ldr	r2, [r4, #3468]
	ldr	r1, [r6, #264]
	ldr	r3, [r2, #1052]
	add	r3, r3, r1
	str	r3, [r2, #1052]
	ldr	r3, [r4, #3468]
	ldr	r2, [r3, #1052]
	cmp	r2, #1024
	movgt	r2, #1024
	strgt	r2, [r3, #1052]
	ldrgt	r3, [r4, #3468]
	ldr	r0, [r6, #184]
	ldrgt	r2, [r3, #1052]
	rsb	r2, r0, r2
	cmn	r2, #4
	beq	.L146
	sub	r0, r0, #4
	ldr	r7, [r7, #52]
	add	r0, r3, r0
	add	r2, r2, #4
	ldr	r1, [r6, #248]
	blx	r7
.L146:
	ldr	r3, .L178+8
	ldr	r6, [r3]
	cmp	r6, #0
	ldrne	r2, [r4, #3468]
	bne	.L177
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L140:
	ldr	r1, [r4, #3472]
	cmp	r1, #0
	beq	.L150
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	mov	r3, #0
	str	r3, [r4, #3472]
.L150:
	ldr	r0, [r5, #4]
	bl	GetUsd
	cmp	r0, #0
	str	r0, [r4, #3472]
	beq	.L151
	ldr	r3, [r5, #12]
	add	r0, r0, #1056
	mov	r1, #11
	add	r6, r5, #16384
	ldr	r7, .L178+4
	ldrd	r2, [r3, #64]
	strd	r2, [r0]
	ldr	r3, [r4, #3472]
	str	r1, [r3, #1040]
	ldr	r3, [r4, #3472]
	ldr	r2, [r4, #2792]
	str	r2, [r3, #1044]
	ldr	r2, [r4, #3472]
	ldr	r3, [r6, #184]
	sub	r3, r3, #4
	str	r3, [r2, #1052]
	ldr	r0, [r4, #3472]
	ldr	r2, [r0, #1052]
	cmp	r2, #1024
	movgt	r3, #1024
	strgt	r3, [r0, #1052]
	ldrgt	r0, [r4, #3472]
	ldr	r1, [r6, #168]
	ldr	r3, [r7, #52]
	ldrgt	r2, [r0, #1052]
	add	r1, r1, #4
	blx	r3
	ldrb	r3, [r6, #174]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L154
	ldr	r2, [r4, #3472]
	ldr	r1, [r6, #264]
	ldr	r3, [r2, #1052]
	add	r3, r3, r1
	str	r3, [r2, #1052]
	ldr	r3, [r4, #3472]
	ldr	r2, [r3, #1052]
	cmp	r2, #1024
	movgt	r2, #1024
	strgt	r2, [r3, #1052]
	ldrgt	r3, [r4, #3472]
	ldr	r0, [r6, #184]
	ldrgt	r2, [r3, #1052]
	rsb	r2, r0, r2
	cmn	r2, #4
	beq	.L154
	sub	r0, r0, #4
	ldr	r7, [r7, #52]
	add	r0, r3, r0
	add	r2, r2, #4
	ldr	r1, [r6, #248]
	blx	r7
.L154:
	ldr	r3, .L178+8
	ldr	r6, [r3]
	cmp	r6, #0
	beq	.L176
	ldr	r2, [r4, #3472]
.L177:
	movw	r3, #1064
	ldr	r0, [r5, #4]
	mov	r1, #6
	blx	r6
.L176:
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L151:
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L179:
	.align	2
.L178:
	.word	.LC52
	.word	vfmw_Osal_Func_Ptr_S
	.word	g_event_report
	UNWIND(.fnend)
	.size	AVS_user_data, .-AVS_user_data
	.align	2
	.global	AVS_sequence_display_extension
	.type	AVS_sequence_display_extension, %function
AVS_sequence_display_extension:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r4, [r0, #544]
	mov	r5, r1
	ldr	r2, .L183
	mov	r1, #4
	mov	r6, r0
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+4
	mov	r1, #3
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+8
	mov	r1, #1
	strb	r0, [r5, #50]
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+12
	mov	r1, #1
	strb	r0, [r5, #51]
	mov	r0, r4
	bl	avs_u_v
	uxtb	r0, r0
	strb	r0, [r5, #52]
	cmp	r0, #1
	beq	.L182
.L181:
	ldr	r2, .L183+16
	mov	r1, #14
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+20
	mov	r1, #1
	str	r0, [r5, #68]
	mov	r0, r4
	bl	avs_f_v
	ldr	r2, .L183+24
	mov	r1, #14
	strb	r0, [r5, #49]
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+28
	mov	r1, #2
	str	r0, [r5, #72]
	mov	r0, r4
	bl	avs_u_v
	strb	r0, [r5, #48]
	mov	r0, r4
	bl	AVS_next_start_code
	ldr	r3, [r6, #152]
	mov	r0, #1
	orr	r3, r3, #131072
	str	r3, [r6, #152]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L182:
	ldr	r2, .L183+32
	mov	r1, #8
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+36
	mov	r1, #8
	str	r0, [r5, #56]
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L183+40
	mov	r1, #8
	str	r0, [r5, #60]
	mov	r0, r4
	bl	avs_u_v
	str	r0, [r5, #64]
	b	.L181
.L184:
	.align	2
.L183:
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC60
	.word	.LC12
	.word	.LC61
	.word	.LC16
	.word	.LC57
	.word	.LC58
	.word	.LC59
	UNWIND(.fnend)
	.size	AVS_sequence_display_extension, .-AVS_sequence_display_extension
	.align	2
	.global	AVS_copyright_extension
	.type	AVS_copyright_extension, %function
AVS_copyright_extension:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r4, [r0, #544]
	mov	r5, r0
	ldr	r2, .L186
	mov	r1, #4
	ldr	r6, .L186+4
	mov	r0, r4
	bl	avs_u_v
	mov	r0, r4
	ldr	r2, .L186+8
	mov	r1, #1
	bl	avs_u_v
	mov	r0, r4
	ldr	r2, .L186+12
	mov	r1, #8
	bl	avs_u_v
	mov	r0, r4
	ldr	r2, .L186+16
	mov	r1, #1
	bl	avs_u_v
	mov	r0, r4
	ldr	r2, .L186+20
	mov	r1, #7
	bl	avs_u_v
	mov	r2, r6
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L186+24
	mov	r1, #20
	bl	avs_u_v
	mov	r2, r6
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L186+28
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r6
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	ldr	r2, .L186+32
	mov	r1, #22
	mov	r0, r4
	bl	avs_u_v
	mov	r0, r4
	bl	AVS_next_start_code
	ldr	r3, [r5, #152]
	mov	r0, #1
	orr	r3, r3, #2097152
	str	r3, [r5, #152]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L187:
	.align	2
.L186:
	.word	.LC53
	.word	.LC12
	.word	.LC62
	.word	.LC63
	.word	.LC64
	.word	.LC16
	.word	.LC65
	.word	.LC66
	.word	.LC67
	UNWIND(.fnend)
	.size	AVS_copyright_extension, .-AVS_copyright_extension
	.align	2
	.global	AVS_camera_parameters_extension
	.type	AVS_camera_parameters_extension, %function
AVS_camera_parameters_extension:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r4, [r0, #544]
	mov	r6, r0
	ldr	r7, .L189
	mov	r1, #4
	ldr	r5, .L189+4
	ldr	r2, .L189+8
	mov	r0, r4
	bl	avs_u_v
	mov	r2, r7
	mov	r0, r4
	mov	r1, #1
	bl	avs_u_v
	mov	r0, r4
	ldr	r2, .L189+12
	mov	r1, #7
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+16
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+20
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+24
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+28
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+32
	mov	r1, #16
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+36
	mov	r1, #16
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+40
	mov	r1, #16
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+44
	mov	r1, #16
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+48
	mov	r1, #16
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+52
	mov	r1, #16
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+56
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+60
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+64
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+68
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+72
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r0, r4
	ldr	r2, .L189+76
	mov	r1, #22
	bl	avs_u_v
	mov	r2, r5
	mov	r0, r4
	mov	r1, #1
	bl	avs_f_v
	mov	r2, r7
	mov	r1, #32
	mov	r0, r4
	bl	avs_u_v
	mov	r0, r4
	bl	AVS_next_start_code
	ldr	r3, [r6, #152]
	mov	r0, #1
	orr	r3, r3, #4194304
	str	r3, [r6, #152]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L190:
	.align	2
.L189:
	.word	.LC16
	.word	.LC12
	.word	.LC53
	.word	.LC68
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC79
	.word	.LC80
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.word	.LC84
	UNWIND(.fnend)
	.size	AVS_camera_parameters_extension, .-AVS_camera_parameters_extension
	.align	2
	.global	AVS_picture_display_extension
	.type	AVS_picture_display_extension, %function
AVS_picture_display_extension:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r4, [r0, #544]
	mov	r7, r1
	mov	r8, r0
	mov	r1, #4
	ldr	r2, .L210
	mov	r0, r4
	bl	avs_u_v
	ldrb	r3, [r7, #15]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L208
	ldrb	r3, [r7, #81]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L209
.L193:
	mov	r3, #1
	str	r3, [r7, #4]
.L195:
	add	r6, r7, #348
	mov	r5, #0
.L197:
	ldr	r2, .L210+4
	mov	r1, #16
	mov	r0, r4
	add	r5, r5, #1
	bl	avs_u_v
	ldr	r2, .L210+8
	mov	r1, #1
	str	r0, [r6, #4]!
	mov	r0, r4
	bl	avs_f_v
	ldr	r2, .L210+12
	mov	r1, #16
	mov	r0, r4
	bl	avs_u_v
	ldr	r2, .L210+8
	mov	r1, #1
	str	r0, [r6, #12]
	mov	r0, r4
	bl	avs_f_v
	ldr	r3, [r7, #4]
	cmp	r3, r5
	bgt	.L197
	mov	r0, r4
	bl	AVS_next_start_code
	ldr	r3, [r8, #152]
	mov	r0, #1
	orr	r3, r3, #524288
	str	r3, [r8, #152]
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L209:
	ldrb	r3, [r7, #83]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L196
.L194:
	mov	r3, #2
	str	r3, [r7, #4]
	b	.L195
.L208:
	ldrb	r3, [r7, #83]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L193
	ldrb	r3, [r7, #82]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L194
.L196:
	mov	r3, #3
	str	r3, [r7, #4]
	b	.L195
.L211:
	.align	2
.L210:
	.word	.LC53
	.word	.LC85
	.word	.LC12
	.word	.LC86
	UNWIND(.fnend)
	.size	AVS_picture_display_extension, .-AVS_picture_display_extension
	.align	2
	.global	AVS_extension
	.type	AVS_extension, %function
AVS_extension:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r4, [r0, #544]
	mov	r5, r0
	ldr	r2, .L219
	mov	r6, r1
	mov	r1, #32
	mov	r0, r4
	bl	avs_f_v
	mov	r0, r4
	mov	r1, #4
	bl	BsShow
	sub	r0, r0, #2
	cmp	r0, #9
	ldrls	pc, [pc, r0, asl #2]
	b	.L213
.L215:
	.word	.L214
	.word	.L213
	.word	.L216
	.word	.L213
	.word	.L213
	.word	.L217
	.word	.L213
	.word	.L213
	.word	.L213
	.word	.L218
.L218:
	mov	r1, r6
	mov	r0, r5
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, lr}
	b	AVS_camera_parameters_extension
.L217:
	mov	r1, r6
	mov	r0, r5
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, lr}
	b	AVS_picture_display_extension
.L216:
	mov	r1, r6
	mov	r0, r5
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, lr}
	b	AVS_copyright_extension
.L214:
	mov	r1, r6
	mov	r0, r5
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, lr}
	b	AVS_sequence_display_extension
.L213:
	mov	r0, r4
	mov	r1, #4
	bl	BsSkip
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L220:
	.align	2
.L219:
	.word	.LC87
	UNWIND(.fnend)
	.size	AVS_extension, .-AVS_extension
	.align	2
	.global	AVS_extension_and_userdata
	.type	AVS_extension_and_userdata, %function
AVS_extension_and_userdata:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r3, r0, #12288
	add	r6, r0, #14912
	add	r5, r0, #15808
	mov	r7, r0
	mov	r8, r1
	ldr	r4, [r3, #3176]
	add	r6, r6, #8
	add	r5, r5, #4
	b	.L225
.L224:
	mov	r1, #32
	mov	r0, r4
	bl	BsShow
	uxtb	r0, r0
	cmp	r0, #178
	beq	.L229
.L225:
	mov	r0, r4
	bl	BsResidBits
	cmp	r0, #40
	mov	r0, r4
	ble	.L230
	bl	AVS_next_start_code
	mov	r1, #32
	mov	r0, r4
	bl	BsShow
	uxtb	r0, r0
	cmp	r0, #178
	cmpne	r0, #181
	bne	.L227
	cmp	r0, #181
	bne	.L224
	mov	r1, r5
	mov	r0, r6
	bl	AVS_extension
	b	.L224
.L230:
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L227:
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L229:
	mov	r1, r8
	mov	r0, r7
	bl	AVS_user_data
	b	.L225
	UNWIND(.fnend)
	.size	AVS_extension_and_userdata, .-AVS_extension_and_userdata
	.align	2
	.global	AVS_AllocateVHB
	.type	AVS_AllocateVHB, %function
AVS_AllocateVHB:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #40)
	sub	sp, sp, #40
	add	r3, r0, #12288
	movw	r2, #8160
	mov	r5, r0
	ldr	r4, [r3, #2824]
	ldr	r3, [r3, #2828]
	sub	r1, r4, #32
	cmp	r1, r2
	bhi	.L232
	sub	r1, r3, #32
	cmp	r1, r2
	bhi	.L232
	ldr	r2, [r0, #12]
	ldr	r6, [r2, #732]
	ldr	r1, [r2, #28]
	cmp	r6, #0
	bne	.L235
	cmp	r1, #25
	beq	.L264
.L254:
	mov	r6, #4
	mov	r8, #5
	mov	r7, r6
.L236:
	ldr	ip, .L266
	mov	r2, #20
	mov	r1, #0
	sub	r0, fp, #56
	str	r3, [fp, #-64]
	ldr	r9, [ip, #48]
	blx	r9
	ldr	r2, [r5, #12]
	ldr	r3, [fp, #-64]
	str	r4, [fp, #-52]
	ldr	r2, [r2, #28]
	str	r3, [fp, #-48]
	cmp	r2, #24
	str	r4, [fp, #-44]
	str	r3, [fp, #-40]
	beq	.L245
	uxtb	r6, r6
	strb	r7, [fp, #-55]
	strb	r8, [fp, #-54]
.L249:
	sub	r1, fp, #56
	ldr	r0, [r5, #4]
	strb	r6, [fp, #-53]
	bl	FSP_ConfigInstance
	subs	r6, r0, #0
	bne	.L246
	ldr	r1, [r5, #12]
	sub	r3, fp, #60
	ldr	r0, [r5, #4]
	ldr	r2, [r1, #20]
	ldr	r1, [r1, #16]
	bl	FSP_ConfigFrameBuf
	cmp	r0, #2
	beq	.L265
	cmp	r0, #0
	moveq	r6, #1
	streq	r6, [r5, #8]
	beq	.L257
	ldr	r1, .L266+4
	mov	r0, r6
	bl	dprint_vfmw
	b	.L257
.L232:
	mov	r2, r4
	ldr	r1, .L266+8
	mov	r0, #0
	mov	r6, #0
	bl	dprint_vfmw
.L257:
	mov	r0, r6
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L235:
	cmp	r1, #25
	bne	.L254
	ldr	r1, [r2, #692]
	ldr	r0, [r2, #696]
	cmp	r1, r4
	bcc	.L242
	cmp	r0, r3
	bcc	.L242
.L243:
	ldr	r0, [r2, #720]
	ldr	r1, [r2, #716]
	cmp	r0, #0
	add	r7, r1, #2
	moveq	r6, #1
	beq	.L244
	add	r6, r1, #1
	cmp	r6, #17
	movge	r6, #17
.L244:
	ldrb	r8, [r2, #740]	@ zero_extendqisi2
	b	.L236
.L246:
	ldr	r1, .L266+12
	mov	r0, #0
	bl	dprint_vfmw
	mov	r6, #0
	b	.L257
.L245:
	mov	r6, #1
	strb	r8, [fp, #-54]
	strb	r6, [fp, #-55]
	b	.L249
.L264:
	ldr	r1, [r2, #692]
	ldr	r0, [r2, #696]
	cmp	r1, r4
	bcc	.L238
	cmp	r0, r3
	bcc	.L238
	ldr	r6, [r5, #8]
	cmp	r6, #1
	bne	.L243
	b	.L257
.L242:
	str	r0, [sp, #4]
	mov	r2, r4
	str	r1, [sp]
	mov	r0, #0
	ldr	r1, .L266+16
	mov	r6, #0
	bl	dprint_vfmw
	b	.L257
.L238:
	str	r0, [sp, #4]
	mov	r2, r4
	str	r1, [sp]
	mov	r0, #0
	ldr	r1, .L266+16
	bl	dprint_vfmw
	b	.L257
.L265:
	add	r0, r5, #16192
	mov	r6, #3
	bl	ResetVoQueue
	b	.L257
.L267:
	.align	2
.L266:
	.word	vfmw_Osal_Func_Ptr_S
	.word	.LC90
	.word	.LC88
	.word	.LC91
	.word	.LC89
	UNWIND(.fnend)
	.size	AVS_AllocateVHB, .-AVS_AllocateVHB
	.align	2
	.global	AVS_StartDecode
	.type	AVS_StartDecode, %function
AVS_StartDecode:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r6, r0, #16384
	add	r5, r0, #12288
	mov	r4, r0
	ldr	r3, [r6, #328]
	strb	r3, [r0, #20]
	ldr	r3, [r6, #332]
	strb	r3, [r0, #21]
	ldr	r3, [r6, #336]
	strb	r3, [r0, #22]
	ldr	r3, [r6, #340]
	strb	r3, [r0, #23]
	ldr	r3, [r6, #344]
	strb	r3, [r0, #24]
	ldr	r3, [r6, #356]
	str	r3, [r0, #28]
	ldr	r3, [r6, #360]
	str	r3, [r0, #84]
	ldr	r3, [r6, #380]
	str	r3, [r0, #32]
	ldr	r3, [r6, #508]
	str	r3, [r0, #96]
	ldr	r3, [r6, #520]
	str	r3, [r0, #100]
	ldr	r3, [r6, #512]
	str	r3, [r0, #104]
	ldr	r3, [r6, #524]
	str	r3, [r0, #108]
	ldr	r3, [r6, #516]
	str	r3, [r0, #112]
	ldr	r3, [r6, #528]
	str	r3, [r0, #116]
	ldr	r3, [r6, #388]
	strh	r3, [r0, #80]	@ movhi
	ldr	r3, [r6, #384]
	strh	r3, [r0, #82]	@ movhi
	ldr	r3, [r6, #392]
	strb	r3, [r0, #59]
	ldr	r3, [r6, #396]
	strb	r3, [r0, #60]
	ldr	r3, [r6, #432]
	strb	r3, [r0, #36]
	ldr	r3, [r6, #436]
	strb	r3, [r0, #37]
	ldr	r3, [r6, #400]
	strb	r3, [r0, #38]
	ldr	r3, [r6, #404]
	strb	r3, [r0, #39]
	ldr	r3, [r6, #412]
	strb	r3, [r0, #40]
	ldr	r3, [r6, #416]
	strb	r3, [r0, #41]
	ldr	r3, [r6, #420]
	strb	r3, [r0, #42]
	ldr	r3, [r6, #424]
	strb	r3, [r0, #43]
	ldr	r3, [r6, #428]
	strb	r3, [r0, #44]
	ldr	r3, [r6, #440]
	strb	r3, [r0, #45]
	ldr	r3, [r6, #444]
	strb	r3, [r0, #46]
	ldr	r3, [r6, #448]
	strb	r3, [r0, #47]
	ldr	r3, [r6, #452]
	strb	r3, [r0, #48]
	ldr	r3, [r6, #456]
	strb	r3, [r0, #49]
	ldr	r3, [r6, #500]
	strb	r3, [r0, #50]
	ldr	r3, [r6, #408]
	strb	r3, [r0, #51]
	ldr	r3, [r6, #464]
	strb	r3, [r0, #52]
	ldr	r3, [r6, #460]
	strb	r3, [r0, #53]
	ldr	r3, [r6, #480]
	strb	r3, [r0, #54]
	ldr	r3, [r6, #476]
	strb	r3, [r0, #55]
	ldr	r3, [r6, #472]
	strb	r3, [r0, #56]
	ldr	r3, [r6, #468]
	strb	r3, [r0, #57]
	ldr	r3, [r6, #504]
	strb	r3, [r0, #58]
	ldr	r2, [r6, #484]
	ldr	r3, [r5, #2756]
	str	r2, [r5, #2172]
	ldr	r2, [r6, #488]
	str	r2, [r5, #2176]
	ldr	r2, [r6, #492]
	str	r2, [r5, #2180]
	ldr	r2, [r6, #560]
	str	r2, [r5, #2188]
	ldr	r2, [r6, #572]
	str	r2, [r5, #2192]
	ldr	r1, [r3, #12]
	ldr	r0, [r0, #4]
	bl	FSP_GetLogicFs
	subs	r7, r0, #0
	beq	.L283
	ldr	r2, [r7, #32]
	add	ip, r4, #14592
	add	ip, ip, #24
	add	r3, r4, #16896
	add	r0, r4, #17152
	add	r3, r3, #194
	ldr	r1, [r2, #24]
	add	r0, r0, #66
	mov	r2, ip
	str	r1, [r5, #2588]
	ldr	r1, [r7, #32]
	ldr	r1, [r1, #60]
	str	r1, [r5, #2596]
	ldr	r1, [r7, #32]
	ldr	r1, [r1, #44]
	str	r1, [r5, #2600]
	ldr	r1, [r7, #32]
	ldr	r1, [r1, #48]
	str	r1, [r5, #2604]
	ldr	r1, [r6, #380]
	str	r1, [r5, #2184]
	ldr	r1, [r6, #496]
	str	r1, [r5, #2196]
	ldr	r1, [r6, #704]
	str	r1, [r5, #2200]
	ldr	r1, [r6, #532]
	strb	r1, [r4, #61]
	ldr	r1, [r6, #536]
	strb	r1, [r4, #62]
	ldr	r1, [r6, #544]
	strb	r1, [r4, #63]
	ldr	r1, [r6, #540]
	strb	r1, [r4, #64]
	ldr	r1, [r6, #548]
	strb	r1, [r4, #65]
	ldr	r1, [r6, #552]
	strb	r1, [r4, #66]
	ldr	r1, [r6, #556]
	strb	r1, [r4, #67]
.L271:
	ldrsh	r1, [r3, #2]!
	cmp	r3, r0
	str	r1, [r2, #4]!
	bne	.L271
	ldr	r1, [r6, #364]
	add	r2, r4, #16896
	add	r3, r4, #14464
	add	r2, r2, #60
	add	r3, r3, #24
	str	r1, [r5, #2608]
	ldr	r1, [r6, #368]
	str	r1, [r5, #2612]
	ldr	r1, [r6, #372]
	str	r1, [r5, #2616]
	ldr	r1, [r6, #376]
	str	r1, [r5, #2620]
.L272:
	ldr	r1, [r2, #4]!
	str	r1, [r3, #4]!
	cmp	r3, ip
	bne	.L272
	ldr	r3, [r5, #3464]
	add	r1, r4, #20
	add	r3, r3, #1
	str	r3, [r5, #3464]
	ldr	r3, [r4, #12]
	str	r1, [r4, #16]
	ldr	r2, [r3, #912]
	cmp	r2, #1
	beq	.L284
	cmp	r2, #2
	beq	.L285
.L274:
	ldr	r2, [r3, #600]
	mov	r0, #1
	str	r2, [r5, #2624]
	ldr	r3, [r3, #652]
	str	r3, [r5, #2628]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L284:
	cmp	r1, #0
	beq	.L274
	ldr	r1, [r5, #2756]
	ldrb	r2, [r1, #9]	@ zero_extendqisi2
	cmp	r2, #2
	bne	.L274
	mov	r7, #0
	ldr	r0, [r4, #4]
	str	r7, [r4, #16]
	mov	r2, r7
	ldr	r1, [r1, #12]
	bl	FSP_SetDisplay
	mov	r0, r7
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L285:
	ldr	r2, [r3, #916]
	cmp	r1, #0
	cmpne	r2, #0
	ble	.L274
	ldr	r1, [r5, #2756]
	ldrb	r2, [r1, #9]	@ zero_extendqisi2
	cmp	r2, #2
	bne	.L274
	mov	r7, #0
	ldr	r0, [r4, #4]
	str	r7, [r4, #16]
	mov	r2, r7
	ldr	r1, [r1, #12]
	bl	FSP_SetDisplay
	ldr	r2, [r4, #12]
	mov	r0, r7
	ldr	r3, [r2, #916]
	sub	r3, r3, #1
	str	r3, [r2, #916]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L283:
	movw	r2, #2162
	ldr	r1, .L286
	bl	dprint_vfmw
	mov	r0, r7
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L287:
	.align	2
.L286:
	.word	.LC92
	UNWIND(.fnend)
	.size	AVS_StartDecode, .-AVS_StartDecode
	.align	2
	.global	AVS_SetImgFormat
	.type	AVS_SetImgFormat, %function
AVS_SetImgFormat:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	add	r5, r0, #12288
	mov	r6, r0
	ldrb	r3, [r5, #2815]	@ zero_extendqisi2
	ldr	r7, [r5, #3148]
	cmp	r3, #1
	ldrb	r3, [r5, #2850]	@ zero_extendqisi2
	moveq	r10, #0
	str	r3, [fp, #-48]
	beq	.L289
	ldrb	r10, [r5, #2880]	@ zero_extendqisi2
	subs	r10, r10, #1
	movne	r10, #1
.L289:
	ldrb	r3, [r5, #2813]	@ zero_extendqisi2
	ldr	r0, [r6, #4]
	sub	r3, r3, #1
	ldrb	r9, [r5, #2882]	@ zero_extendqisi2
	uxtb	r3, r3
	cmp	r3, #3
	ldrls	r2, .L299
	movhi	r8, #0
	addls	r3, r2, r3, lsl #2
	ldrls	r8, [r3, #64]
	ldr	r3, [r5, #2756]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r4, r0, #0
	beq	.L297
	ldrb	r3, [r4, #65]	@ zero_extendqisi2
	mov	r1, r8
	ldrb	ip, [r4, #64]	@ zero_extendqisi2
	bfi	r3, r10, #0, #2
	ldr	r2, [fp, #-48]
	bfi	ip, r7, #0, #2
	uxtb	r3, r3
	and	ip, ip, #227
	orr	r3, r3, #12
	bfi	ip, r2, #5, #3
	bfi	r3, r9, #4, #2
	strb	ip, [r4, #64]
	strb	r3, [r4, #65]
	ldr	r3, [r4, #64]
	bfi	r3, r8, #14, #3
	str	r3, [r4, #64]
	ldr	r2, [r5, #2756]
	ldrb	r3, [r4, #66]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	bfi	r3, r2, #1, #1
	strb	r3, [r4, #66]
	ldr	r3, [r5, #2756]
	ldr	r3, [r3, #4]
	str	r3, [r4, #120]
	ldr	r3, [r5, #3456]
	str	r7, [r4, #56]
	str	r7, [r4, #60]
	str	r3, [r4, #152]
	bl	SetAspectRatio
	ldr	r3, [r5, #2824]
	str	r3, [r4, #68]
	ldr	r3, [r5, #2828]
	str	r3, [r4, #72]
	ldr	r2, [r5, #2844]
	str	r2, [r4, #108]
	ldr	r2, [r6, #12]
	ldr	r2, [r2, #28]
	cmp	r2, #25
	beq	.L298
.L292:
	mov	r3, #6
	str	r3, [r4, #296]
	ldrb	r1, [r5, #2881]	@ zero_extendqisi2
	mov	r2, #1
	mov	r3, #8
	strb	r2, [r4, #291]
	cmp	r1, r2
	strb	r2, [r4, #289]
	str	r3, [r4, #300]
	moveq	r2, #0
	movne	r2, #4
	str	r3, [r4, #308]
	strb	r2, [r4, #284]
	str	r3, [r4, #304]
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L298:
	ldr	r0, [r4, #112]
	add	r3, r3, #15
	ldr	ip, [r4, #36]
	add	lr, r4, #512
	mov	r3, r3, lsr #4
	mov	r1, r0, asl #4
	add	r6, ip, r0
	mul	r1, r3, r1
	add	r7, r1, ip
	str	r7, [r4, #40]
	ldrd	r2, [lr, #-8]
	add	r0, r7, r0
	adds	r2, r2, r1
	adc	r3, r3, r1, asr #31
	strd	r2, [lr]
	str	r7, [r4, #24]
	str	r0, [r4, #32]
	str	r6, [r4, #28]
	str	ip, [r4, #20]
	b	.L292
.L297:
	mov	r2, #2272
	ldr	r1, .L299+4
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, lr}
	b	dprint_vfmw
.L300:
	.align	2
.L299:
	.word	.LANCHOR0
	.word	.LC93
	UNWIND(.fnend)
	.size	AVS_SetImgFormat, .-AVS_SetImgFormat
	.align	2
	.global	AVS_GetImageBuffer
	.type	AVS_GetImageBuffer, %function
AVS_GetImageBuffer:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r3, r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r3, r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r4, r0, #12288
	mov	r5, r0
	ldr	r3, [r4, #3872]
	cmp	r3, #2
	beq	.L302
	ldr	r6, [r4, #3188]
	add	r7, r0, #14912
	add	r7, r7, #8
	add	r2, r6, #1
	mov	r3, r6, asl #4
	mov	r1, r2, asr #31
	add	r6, r3, r6, lsl #2
	add	r6, r6, #24
	mov	r3, r1, lsr #30
	add	r6, r7, r6
	add	r2, r2, r3
	str	r6, [r4, #2756]
	and	r2, r2, #3
	rsb	r2, r3, r2
	str	r2, [r4, #3188]
.L303:
	mov	r1, #1
	ldr	r0, [r5, #4]
	bl	FSP_NewLogicFs
	str	r0, [r6, #12]
	ldr	r3, [r4, #2756]
	ldr	r1, [r3, #12]
	cmp	r1, #0
	blt	.L318
	ldr	r0, [r5, #4]
	bl	FSP_GetLogicFs
	subs	r5, r0, #0
	beq	.L319
	ldr	r3, [r4, #2756]
	mov	r0, #18
	ldr	r1, .L320
	ldr	r2, [r3, #12]
	bl	dprint_vfmw
	ldr	r2, [r5, #28]
	cmp	r2, #0
	beq	.L308
	ldr	r3, [r5, #32]
	cmp	r3, #0
	beq	.L308
	ldr	r3, [r3, #8]
	mov	r0, #18
	ldr	r2, [r2, #8]
	ldr	r1, .L320+4
	bl	dprint_vfmw
.L308:
	mov	r3, #0
	mov	r0, #1
	str	r3, [r5, #192]
	ldmfd	sp, {r3, r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L302:
	add	r7, r0, #14912
	add	r6, r7, #112
	add	r7, r7, #8
	str	r6, [r4, #2756]
	b	.L303
.L318:
	ldr	r1, .L320+8
	mov	r0, #0
	bl	dprint_vfmw
	ldr	r3, [r4, #2760]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r10, r0, #0
	beq	.L305
	ldr	r3, [r4, #2756]
	mov	r2, #1
	ldr	r0, [r5, #4]
	add	r8, r10, #560
	add	r6, r10, #576
	add	r9, r10, #544
	ldr	r1, [r3, #12]
	add	r7, r7, #4
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2760]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2764]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2768]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r1, [r10, #544]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r10, #552]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r10, #560]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r10, #568]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	mov	r2, #0
	mov	r3, #0
	strd	r2, [r9]
	strd	r2, [r8, #-8]
	strd	r2, [r8]
	strd	r2, [r6, #-8]
	str	r7, [r4, #2756]
	str	r7, [r4, #2768]
	str	r7, [r4, #2764]
	str	r7, [r4, #2760]
	ldr	r0, [r5, #4]
	bl	FSP_GetNullLogicFs
	str	r0, [r4, #2648]
.L305:
	mov	r6, #0
	add	r1, r5, #16192
	str	r6, [r4, #3452]
	ldr	r0, [r5, #4]
	bl	FSP_ClearNotInVoQueue
	mov	r0, r6
	ldmfd	sp, {r3, r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L319:
	movw	r2, #2377
	ldr	r1, .L320+12
	bl	dprint_vfmw
	mov	r0, r5
	ldmfd	sp, {r3, r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L321:
	.align	2
.L320:
	.word	.LC95
	.word	.LC96
	.word	.LC94
	.word	.LC92
	UNWIND(.fnend)
	.size	AVS_GetImageBuffer, .-AVS_GetImageBuffer
	.align	2
	.global	AVS_OutputOneFrame
	.type	AVS_OutputOneFrame, %function
AVS_OutputOneFrame:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	mov	r6, r0
	mov	r4, r1
	ldr	r0, [r1, #4]
	ldr	r1, [r6, #12]
	bl	FSP_GetFsImagePtr
	subs	r5, r0, #0
	beq	.L328
	mov	r2, #1
	ldr	r1, [r6, #12]
	ldr	r0, [r4, #4]
	bl	FSP_SetDisplay
	ldr	r0, [r4, #4]
	add	r3, r4, #16192
	str	r5, [sp]
	mov	r2, r4
	mov	r1, #6
	bl	InsertImgToVoQueue
	cmp	r0, #1
	beq	.L324
	ldr	r0, [r4, #4]
	mov	r2, #0
	ldr	r1, [r6, #12]
	bl	FSP_SetDisplay
	ldr	r2, [r6, #12]
	ldr	r1, .L329
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, #0
.L324:
	sub	sp, fp, #24
	ldmfd	sp, {r4, r5, r6, fp, sp, pc}
.L328:
	movw	r2, #2418
	ldr	r1, .L329+4
	bl	dprint_vfmw
	mov	r0, r5
	sub	sp, fp, #24
	ldmfd	sp, {r4, r5, r6, fp, sp, pc}
.L330:
	.align	2
.L329:
	.word	.LC98
	.word	.LC97
	UNWIND(.fnend)
	.size	AVS_OutputOneFrame, .-AVS_OutputOneFrame
	.align	2
	.global	AVS_UpdateTableIdx2Dist
	.type	AVS_UpdateTableIdx2Dist, %function
AVS_UpdateTableIdx2Dist:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldrb	r3, [r0, #249]	@ zero_extendqisi2
	cmp	r3, #1
	ldr	r3, [r0, #516]
	beq	.L345
	cmp	r3, #0
	beq	.L346
	cmp	r3, #1
	bne	.L340
	ldr	r3, [r0, #132]
	add	r2, r0, #4
	ldr	r1, [r0, #124]
	cmp	r3, r2
	ldrne	r2, [r3, #16]
	ldr	r3, [r0, #128]
	ldreq	r2, [r0, #588]
	movne	r2, r2, asl #1
	strne	r2, [r0, #588]
	add	r2, r2, #1
	str	r2, [r0, #584]
	ldr	r3, [r3, #16]
	str	r2, [r0, #604]
	mov	r3, r3, asl #1
	str	r3, [r0, #580]
	str	r3, [r0, #600]
	add	r3, r3, #1
	str	r3, [r0, #576]
	str	r3, [r0, #596]
	ldr	r3, [r1, #16]
	mov	r3, r3, asl #1
	str	r3, [r0, #592]
.L336:
	mov	r0, #1
	ldmfd	sp, {fp, sp, pc}
.L346:
	ldr	r3, [r0, #128]
	ldr	r3, [r3, #16]
	mov	r3, r3, asl #1
	str	r3, [r0, #592]
	mov	r0, #1
	ldmfd	sp, {fp, sp, pc}
.L345:
	cmp	r3, #1
	beq	.L347
	cmp	r3, #2
	bne	.L336
	ldr	r3, [r0, #132]
	add	r2, r0, #4
	cmp	r3, r2
	ldrne	r3, [r3, #16]
	movne	r3, r3, asl #1
	strne	r3, [r0, #576]
	ldr	r3, [r0, #128]
	ldr	r3, [r3, #16]
	mov	r3, r3, asl #1
	str	r3, [r0, #584]
	mov	r0, #1
	ldmfd	sp, {fp, sp, pc}
.L340:
	cmp	r3, #2
	bne	.L336
	ldr	r3, [r0, #132]
	add	r2, r0, #4
	cmp	r3, r2
	ldrne	r2, [r3, #16]
	ldr	r3, [r0, #128]
	ldreq	r2, [r0, #580]
	movne	r2, r2, asl #1
	strne	r2, [r0, #580]
	add	r1, r2, #1
	str	r1, [r0, #576]
	ldr	r3, [r3, #16]
	str	r1, [r0, #592]
	str	r2, [r0, #596]
	mov	r3, r3, asl #1
	str	r3, [r0, #584]
	str	r3, [r0, #600]
	add	r3, r3, #1
	str	r3, [r0, #588]
	str	r3, [r0, #604]
	mov	r0, #1
	ldmfd	sp, {fp, sp, pc}
.L347:
	ldr	r3, [r0, #128]
	add	r2, r0, #4
	ldr	r1, [r0, #132]
	ldr	r3, [r3, #16]
	cmp	r1, r2
	mov	r3, r3, asl #1
	str	r3, [r0, #576]
	ldrne	r3, [r1, #16]
	movne	r3, r3, asl #1
	strne	r3, [r0, #580]
	b	.L336
	UNWIND(.fnend)
	.size	AVS_UpdateTableIdx2Dist, .-AVS_UpdateTableIdx2Dist
	.global	__aeabi_idiv
	.align	2
	.global	AVS_UpdateTableMvEScale
	.type	AVS_UpdateTableMvEScale, %function
AVS_UpdateTableMvEScale:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #20)
	sub	sp, sp, #20
	mov	r5, r0
	ldrb	r0, [r0, #249]	@ zero_extendqisi2
	cmp	r0, #1
	beq	.L399
	ldr	r3, [r5, #516]
	cmp	r3, #0
	moveq	r3, #512
	streq	r3, [r5, #672]
	beq	.L385
	cmp	r3, #1
	bne	.L375
	ldr	r3, [r5, #124]
	add	r10, r5, #588
	str	r3, [fp, #-60]
	add	r3, r5, #572
	str	r3, [fp, #-48]
	add	r3, r5, #604
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-56]
.L364:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-56]
	ldr	r8, [fp, #-52]
	ldr	r3, [r3, #16]
	ldr	r7, [fp, #-48]
	add	r9, r2, r3, lsl #1
	mov	r3, r10
	mov	r10, r9
	mov	r9, r3
.L360:
	ldr	r5, [r7, #4]!
	mov	r6, r8
	ldr	r4, [fp, #-48]
	rsb	r5, r5, r10
	ubfx	r5, r5, #0, #9
.L362:
	ldr	r1, [r4, #4]!
	mov	r0, #512
	mov	r3, #1
	rsb	r1, r1, r10
	ubfx	r1, r1, #0, #9
	cmp	r1, #0
	beq	.L361
	bl	__aeabi_idiv
	mov	r3, r0
.L361:
	mul	r3, r3, r5
	cmp	r9, r4
	str	r3, [r6, #4]!
	bne	.L362
	cmp	r9, r7
	add	r8, r8, #16
	bne	.L360
	ldr	r3, [fp, #-56]
	add	r10, r9, #16
	add	r3, r3, #1
	str	r3, [fp, #-56]
	cmp	r3, #2
	ldr	r3, [fp, #-48]
	add	r3, r3, #16
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	add	r3, r3, #64
	str	r3, [fp, #-52]
	bne	.L364
.L385:
	mov	r0, #1
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L399:
	ldr	r2, [r5, #124]
	ldr	r3, [r5, #516]
	ldr	r6, [r2, #16]
	cmp	r3, #1
	addeq	r9, r5, #572
	addeq	r7, r5, #32
	moveq	r8, r5
	mov	r6, r6, asl #1
	beq	.L351
	cmp	r3, #2
	bne	.L385
	ldr	r3, [r5, #576]
	rsb	r3, r3, r6
	ubfx	r4, r3, #0, #9
	cmp	r4, #0
	beq	.L357
	mov	r1, r4
	mov	r0, #512
	bl	__aeabi_idiv
.L357:
	mul	r3, r0, r4
	ldr	r4, [r5, #584]
	rsb	r4, r6, r4
	ubfx	r4, r4, #0, #9
	cmp	r4, #0
	str	r3, [r5, #608]
	moveq	r0, #1
	beq	.L358
	mov	r1, r4
	mov	r0, #512
	bl	__aeabi_idiv
.L358:
	mul	r4, r0, r4
	mov	r0, #1
	str	r4, [r5, #624]
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L351:
	ldr	r1, [r5, #576]
	mov	r0, #512
	ldr	r4, [r9, #4]!
	mov	r3, #1
	rsb	r1, r1, r6
	ubfx	r1, r1, #0, #9
	rsb	r4, r4, r6
	cmp	r1, #0
	ubfx	r4, r4, #0, #9
	beq	.L353
	bl	__aeabi_idiv
	mov	r3, r0
.L353:
	mul	r3, r3, r4
	mov	r0, #1
	str	r3, [r8, #608]
	ldr	r1, [r5, #580]
	rsb	r1, r1, r6
	ubfx	r1, r1, #0, #9
	cmp	r1, #0
	beq	.L354
	mov	r0, #512
	bl	__aeabi_idiv
.L354:
	mul	r0, r0, r4
	add	r8, r8, #16
	str	r0, [r8, #596]
	cmp	r8, r7
	bne	.L351
	b	.L385
.L375:
	cmp	r3, #2
	bne	.L385
	ldr	r3, [r5, #124]
	mov	r7, r5
	add	r5, r5, #16
	add	r10, r7, #572
	mov	r8, #0
	str	r3, [fp, #-52]
.L374:
	ldr	r3, [fp, #-52]
	mov	r9, r10
	ldr	r4, [r3, #16]
	mov	r3, r7
	add	r4, r8, r4, lsl #1
.L365:
	ldr	r1, [r10, #4]
	mov	r0, #512
	ldr	r6, [r9, #4]!
	mov	ip, #1
	rsb	r1, r1, r4
	ubfx	r1, r1, #0, #9
	rsb	r6, r6, r4
	cmp	r1, #0
	ubfx	r6, r6, #0, #9
	beq	.L367
	str	r3, [fp, #-48]
	bl	__aeabi_idiv
	ldr	r3, [fp, #-48]
	mov	ip, r0
.L367:
	mul	ip, ip, r6
	mov	r0, #1
	str	ip, [r3, #608]
	ldr	r1, [r10, #8]
	rsb	r1, r1, r4
	ubfx	r1, r1, #0, #9
	cmp	r1, #0
	beq	.L368
	mov	r0, #512
	str	r3, [fp, #-48]
	bl	__aeabi_idiv
	ldr	r3, [fp, #-48]
.L368:
	mul	r0, r0, r6
	add	r3, r3, #8
	str	r0, [r3, #604]
	cmp	r3, r5
	bne	.L365
	add	r2, r10, #8
	mov	r9, r7
.L366:
	ldr	r1, [r10, #12]
	mov	r0, #512
	ldr	r6, [r2, #4]!
	mov	ip, #1
	rsb	r1, r4, r1
	ubfx	r1, r1, #0, #9
	rsb	r6, r4, r6
	cmp	r1, #0
	ubfx	r6, r6, #0, #9
	beq	.L371
	str	r2, [fp, #-48]
	bl	__aeabi_idiv
	ldr	r2, [fp, #-48]
	mov	ip, r0
.L371:
	mul	ip, ip, r6
	mov	r0, #1
	str	ip, [r9, #624]
	ldr	r1, [r10, #16]
	rsb	r1, r4, r1
	ubfx	r1, r1, #0, #9
	cmp	r1, #0
	beq	.L372
	mov	r0, #512
	str	r2, [fp, #-48]
	bl	__aeabi_idiv
	ldr	r2, [fp, #-48]
.L372:
	mul	r0, r0, r6
	add	r9, r9, #8
	str	r0, [r9, #620]
	cmp	r5, r9
	bne	.L366
	add	r8, r8, #1
	add	r5, r5, #32
	cmp	r8, #2
	add	r7, r7, #32
	add	r10, r10, #16
	bne	.L374
	mov	r0, #1
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_UpdateTableMvEScale, .-AVS_UpdateTableMvEScale
	.align	2
	.global	AVS_UpdateTableDirectScale
	.type	AVS_UpdateTableDirectScale, %function
AVS_UpdateTableDirectScale:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	ldrb	r3, [r0, #249]	@ zero_extendqisi2
	mov	r6, r0
	cmp	r3, #1
	beq	.L423
	ldr	r9, [r0, #128]
	mov	r5, #1
	add	r8, r0, #4
	add	r7, r0, #736
	mov	r4, #0
	ldr	r10, [r9, #16]
	mov	r10, r10, asl r5
.L407:
	sub	r3, r5, #1
	mov	r0, #16384
	and	r1, r5, #1
	add	r3, r3, r3, lsr #31
	mov	r3, r3, asr #1
	add	r3, r3, #33
	ldr	r3, [r6, r3, asl #2]
	cmp	r8, r3
	beq	.L405
	ldr	r4, [r3, #16]
	add	r4, r1, r4, lsl #1
	rsb	r1, r4, r10
	ubfx	r1, r1, #0, #9
	cmp	r1, #0
	moveq	r3, #32
	streq	r3, [r7]
	beq	.L405
	bl	__aeabi_idiv
	str	r0, [r7]
.L405:
	add	r5, r5, #1
	add	r7, r7, #4
	cmp	r5, #5
	bne	.L407
	ldr	r2, [r9, #16]
	add	r9, r6, #752
	ldr	r3, [r6, #852]
	mov	r5, #1
	mov	r7, #0
	cmp	r3, #0
	moveq	r2, r2, asl #1
	movne	r10, r2, asl #1
	addeq	r10, r2, #1
.L417:
	cmp	r3, #0
	beq	.L410
	add	r1, r7, r7, lsr #31
	mov	r1, r1, asr #1
	add	r1, r1, #33
	ldr	r1, [r6, r1, asl #2]
	cmp	r8, r1
	beq	.L411
	ldr	r4, [r1, #16]
	and	r1, r5, #1
	add	r4, r1, r4, lsl #1
	rsb	r0, r4, r10
	add	r0, r0, #512
	mov	r1, r0, asr #31
	mov	ip, r1, lsr #23
	add	r0, r0, ip
	ubfx	r1, r0, #0, #9
	subs	r1, r1, ip
	moveq	r2, #32
	streq	r2, [r9, #-16]
	beq	.L413
	mov	r0, #16384
	str	r3, [fp, #-48]
	bl	__aeabi_idiv
	ldr	r3, [fp, #-48]
	str	r0, [r9, #-16]
.L414:
	str	r0, [r9]
.L416:
	add	r5, r5, #1
	add	r7, r7, #1
	cmp	r5, #5
	add	r9, r9, #4
	bne	.L417
	mov	r0, #1
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L410:
	add	r1, r5, r5, lsr #31
	mov	r1, r1, asr #1
	add	r1, r1, #32
	ldr	r1, [r6, r1, asl #2]
	cmp	r8, r1
	ldrne	r4, [r1, #16]
	andne	r1, r7, #1
	addne	r4, r1, r4, lsl #1
.L411:
	rsb	r0, r4, r10
	add	r0, r0, #512
	mov	r1, r0, asr #31
	mov	ip, r1, lsr #23
	add	r0, r0, ip
	ubfx	r1, r0, #0, #9
	subs	r1, r1, ip
	beq	.L413
	mov	r0, #16384
	str	r3, [fp, #-48]
	bl	__aeabi_idiv
	ldr	r3, [fp, #-48]
	b	.L414
.L413:
	mov	r2, #32
	str	r2, [r9]
	b	.L416
.L423:
	ldr	r3, [r0, #128]
	add	r7, r0, #4
	add	r4, r0, #128
	add	r6, r0, #136
	mov	r8, #32
	ldr	r5, [r3, #16]
	mov	r5, r5, asl #1
.L404:
	ldr	r3, [r4, #4]!
	mov	r0, #16384
	cmp	r3, r7
	beq	.L402
	ldr	r1, [r3, #16]
	sub	r1, r5, r1, asl #1
	ubfx	r1, r1, #0, #9
	cmp	r1, #0
	streq	r8, [r4, #604]
	beq	.L402
	bl	__aeabi_idiv
	str	r0, [r4, #604]
.L402:
	cmp	r4, r6
	bne	.L404
	mov	r0, #1
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_UpdateTableDirectScale, .-AVS_UpdateTableDirectScale
	.align	2
	.global	AVS_UpdateTableSymScale
	.type	AVS_UpdateTableSymScale, %function
AVS_UpdateTableSymScale:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #20)
	sub	sp, sp, #20
	ldr	r3, [r0, #132]
	add	r2, r0, #4
	mov	r5, r0
	cmp	r3, r2
	beq	.L431
	ldrb	r0, [r0, #249]	@ zero_extendqisi2
	cmp	r0, #1
	beq	.L426
	ldr	r3, [r5, #124]
	add	r2, r5, #572
	add	r5, r5, #764
	mov	r1, r5
	str	r3, [fp, #-56]
	mov	r5, r2
	mov	r3, #0
	mov	r2, r1
.L429:
	ldr	r1, [fp, #-56]
	add	r10, r5, #20
	mov	r8, r5
	str	r5, [fp, #-48]
	mov	r9, r2
	mov	r5, r10
	ldr	r6, [r1, #16]
	mov	r7, #2
	mov	r10, r2
	str	r3, [fp, #-52]
	add	r6, r3, r6, lsl #1
.L428:
	ldr	r1, [r8, #4]!
	mov	r0, #512
	ldr	r4, [r5, #-4]!
	mov	ip, #1
	rsb	r1, r1, r6
	ubfx	r1, r1, #0, #9
	rsb	r4, r6, r4
	cmp	r1, #0
	ubfx	r4, r4, #0, #9
	beq	.L427
	bl	__aeabi_idiv
	mov	ip, r0
.L427:
	mul	r4, ip, r4
	subs	r7, r7, #1
	str	r4, [r9, #4]!
	bne	.L428
	ldr	r3, [fp, #-52]
	add	r2, r10, #8
	ldr	r5, [fp, #-48]
	add	r3, r3, #1
	cmp	r3, #2
	add	r5, r5, #16
	bne	.L429
	mov	r0, #1
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L426:
	ldr	r2, [r5, #124]
	ldr	r1, [r3, #16]
	ldr	r3, [r5, #128]
	ldr	r2, [r2, #16]
	ldr	r4, [r3, #16]
	mov	r3, r2, asl #1
	sub	r1, r3, r1, asl #1
	ubfx	r1, r1, #0, #9
	rsb	r3, r3, r4, lsl #1
	cmp	r1, #0
	ubfx	r4, r3, #0, #9
	bne	.L436
.L430:
	mul	r3, r0, r4
	mov	r0, #1
	str	r3, [r5, #768]
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L436:
	mov	r0, #512
	bl	__aeabi_idiv
	b	.L430
.L431:
	mov	r0, #0
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_UpdateTableSymScale, .-AVS_UpdateTableSymScale
	.align	2
	.global	AVS_UpdateTabBBlkDist
	.type	AVS_UpdateTabBBlkDist, %function
AVS_UpdateTabBBlkDist:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r2, [r0, #132]
	add	r1, r0, #4
	mov	r3, r0
	cmp	r2, r1
	beq	.L440
	ldrb	r0, [r0, #249]	@ zero_extendqisi2
	cmp	r0, #1
	beq	.L441
	ldr	r4, [r3, #124]
	mov	r0, #1
	ldr	r1, [r3, #588]
	ldr	r5, [r3, #576]
	ldr	r2, [r4, #16]
	ldr	lr, [r3, #584]
	ldr	ip, [r3, #580]
	mov	r2, r2, asl r0
	rsb	r5, r5, r2
	rsb	ip, ip, r2
	rsb	lr, r2, lr
	rsb	r2, r2, r1
	ubfx	lr, lr, #0, #9
	ubfx	r1, r5, #0, #9
	str	lr, [r3, #792]
	ubfx	r2, r2, #0, #9
	str	r1, [r3, #784]
	ubfx	r1, ip, #0, #9
	str	r2, [r3, #796]
	str	r1, [r3, #788]
	ldr	r2, [r4, #16]
	ldr	r1, [r3, #604]
	ldr	r4, [r3, #592]
	ldr	lr, [r3, #600]
	mov	r2, r2, asl r0
	ldr	ip, [r3, #596]
	add	r2, r2, r0
	rsb	r4, r4, r2
	rsb	lr, r2, lr
	rsb	ip, ip, r2
	rsb	r2, r2, r1
	ubfx	lr, lr, #0, #9
	ubfx	r1, r4, #0, #9
	ubfx	r2, r2, #0, #9
	str	r1, [r3, #800]
	str	lr, [r3, #808]
	ubfx	r1, ip, #0, #9
	str	r2, [r3, #812]
	str	r1, [r3, #804]
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L441:
	ldr	r1, [r3, #124]
	ldr	lr, [r3, #128]
	ldr	ip, [r2, #16]
	ldr	r1, [r1, #16]
	ldr	lr, [lr, #16]
	mov	r2, r1, asl #1
	sub	r1, r2, ip, asl #1
	rsb	r2, r2, lr, lsl #1
	ubfx	r1, r1, #0, #9
	ubfx	r2, r2, #0, #9
	str	r1, [r3, #784]
	str	r2, [r3, #792]
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L440:
	mov	r0, #0
	ldmfd	sp, {r4, r5, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_UpdateTabBBlkDist, .-AVS_UpdateTabBBlkDist
	.align	2
	.global	AVS_UpdatePmvTable
	.type	AVS_UpdatePmvTable, %function
AVS_UpdatePmvTable:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	ldr	r4, [r0, #516]
	mov	r5, r0
	cmp	r4, #1
	beq	.L451
	bcc	.L445
	cmp	r4, #2
	bne	.L453
	bl	AVS_UpdateTableIdx2Dist
	mov	r0, r5
	bl	AVS_UpdateTableMvEScale
	mov	r0, r5
	bl	AVS_UpdateTableDirectScale
	mov	r0, r5
	bl	AVS_UpdateTabBBlkDist
	mov	r0, r5
	bl	AVS_UpdateTableSymScale
	mov	r0, #1
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L453:
	mov	r0, #0
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L445:
	ldrb	r4, [r0, #249]	@ zero_extendqisi2
	cmp	r4, #1
	beq	.L450
.L451:
	bl	AVS_UpdateTableIdx2Dist
	mov	r0, r5
	bl	AVS_UpdateTableMvEScale
.L450:
	mov	r0, #1
	ldmfd	sp, {r4, r5, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_UpdatePmvTable, .-AVS_UpdatePmvTable
	.align	2
	.global	AVS_GetStreamInf
	.type	AVS_GetStreamInf, %function
AVS_GetStreamInf:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #32)
	sub	sp, sp, #32
	add	r4, r0, #12288
	mov	r5, r0
	ldr	r2, [r4, #2796]
	ldrb	r3, [r4, #2812]	@ zero_extendqisi2
	cmp	r2, #1
	str	r3, [r4, #3480]
	beq	.L455
	ldr	r3, [r0, #8]
	cmp	r3, #1
	beq	.L456
.L455:
	ldr	r1, .L563
	mov	r0, #22
	bl	dprint_vfmw
	sub	r3, fp, #36
	mov	ip, #0
	sub	r2, fp, #44
	str	ip, [r3, #-4]!
	sub	r1, fp, #48
	ldr	r0, [r5, #4]
	str	ip, [fp, #-48]
	str	ip, [fp, #-44]
	bl	VCTRL_GetChanImgNum
	ldr	r3, [r5, #12]
	ldr	r2, [r3, #732]
	cmp	r2, #1
	beq	.L548
.L458:
	ldrb	r3, [r4, #2815]	@ zero_extendqisi2
	ldr	r2, [r4, #2824]
	cmp	r3, #1
	ldr	r3, [r4, #2828]
	add	r2, r2, #15
	addne	r3, r3, #31
	addeq	r3, r3, #15
	mov	r2, r2, lsr #4
	str	r2, [r4, #2776]
	movne	r3, r3, lsr #5
	moveq	r3, r3, lsr #4
	movne	r3, r3, asl #1
	cmp	r2, #512
	str	r3, [r4, #2780]
	bgt	.L465
	cmp	r3, #512
	ble	.L466
.L465:
	ldr	r1, .L563+4
	mov	r0, #18
	bl	dprint_vfmw
	mov	r7, #0
.L461:
	mov	r0, r7
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L466:
	ldr	r3, [r4, #2760]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r6, r0, #0
	addeq	r6, r5, #14912
	addeq	r6, r6, #12
	beq	.L468
	ldr	r3, [r4, #2756]
	mov	r2, #1
	ldr	r0, [r5, #4]
	add	r7, r6, #576
	add	r8, r6, #560
	add	r9, r6, #544
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2760]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2764]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2768]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r1, [r6, #544]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r6, #552]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r6, #560]
	ldr	r0, [r5, #4]
	add	r6, r5, #14912
	bl	FreeUsdByDec
	ldr	r1, [r7, #-8]
	ldr	r0, [r5, #4]
	add	r6, r6, #12
	bl	FreeUsdByDec
	mov	r2, #0
	mov	r3, #0
	strd	r2, [r9]
	strd	r2, [r8, #-8]
	strd	r2, [r8]
	strd	r2, [r7, #-8]
	str	r6, [r4, #2756]
	str	r6, [r4, #2768]
	str	r6, [r4, #2764]
	str	r6, [r4, #2760]
	ldr	r0, [r5, #4]
	bl	FSP_GetNullLogicFs
	str	r0, [r4, #2648]
.L468:
	add	r7, r5, #16192
	mov	r3, #0
	str	r3, [r4, #3452]
	mov	r1, r7
	ldr	r0, [r5, #4]
	bl	FSP_ClearNotInVoQueue
	ldr	r3, [r5, #12]
	ldr	r2, [r3, #732]
	cmp	r2, #0
	bne	.L469
	ldr	r3, [r3, #28]
	cmp	r3, #25
	beq	.L549
.L469:
	ldr	r0, [r5, #4]
	bl	FSP_GetFspType
	cmp	r0, #0
	beq	.L545
.L471:
	str	r6, [r4, #2756]
	mov	r8, #0
	str	r6, [r4, #2768]
	mov	r0, r5
	str	r6, [r4, #2764]
	str	r6, [r4, #2760]
	str	r8, [r4, #2796]
	bl	AVS_AllocateVHB
	cmp	r0, #3
	mov	r7, r0
	beq	.L461
	cmp	r0, r8
	strne	r8, [r4, #2796]
	beq	.L550
.L456:
	ldrb	r1, [r4, #2811]	@ zero_extendqisi2
	mov	r0, r5
	ldr	r3, [r4, #2756]
	ldrb	r2, [r4, #2881]	@ zero_extendqisi2
	str	r1, [r4, #3476]
	strb	r2, [r3, #8]
	bl	AVS_GetImageBuffer
	subs	r7, r0, #0
	beq	.L551
	ldr	r3, [r4, #2756]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L552
	ldr	r3, [r5, #12]
	add	ip, r7, #592
	add	lr, r7, #608
	ldr	r1, .L563+8
	mov	r0, #29
	ldrd	r2, [r3, #64]
	strd	r2, [ip, #-8]
	ldr	r3, [r5, #12]
	ldrd	r2, [r3, #80]
	strd	r2, [ip]
	ldr	r3, [r5, #12]
	ldrd	r2, [r3, #96]
	strd	r2, [lr, #-8]
	mvn	r2, #0
	ldr	lr, [r5, #12]
	mvn	r3, #0
	ldr	lr, [lr, #112]
	str	lr, [r7]
	ldr	lr, [r5, #12]
	ldr	lr, [lr, #116]
	str	lr, [r7, #4]
	ldr	lr, [r5, #12]
	ldr	lr, [lr, #120]
	str	lr, [r7, #8]
	ldr	lr, [r5, #12]
	ldr	lr, [lr, #136]
	str	lr, [r7, #12]
	ldrb	lr, [r4, #2881]	@ zero_extendqisi2
	clz	lr, lr
	mov	lr, lr, lsr #5
	str	lr, [r7, #52]
	ldr	lr, [r5, #12]
	strd	r2, [lr, #64]
	ldrd	r6, [ip]
	ldrd	r2, [ip, #-8]
	strd	r6, [sp]
	bl	dprint_vfmw
	ldr	r3, [r4, #2756]
	ldr	r2, [r4, #2912]
	str	r2, [r3, #16]
	ldr	r3, [r4, #2756]
	ldrb	r2, [r4, #2881]	@ zero_extendqisi2
	strb	r2, [r3, #8]
	ldr	r3, [r4, #2756]
	ldr	r2, [r4, #3148]
	strb	r2, [r3, #9]
	ldrb	r2, [r4, #2881]	@ zero_extendqisi2
	ldr	r3, [r4, #2756]
	cmp	r2, #0
	ldrneb	r2, [r4, #2882]	@ zero_extendqisi2
	moveq	r2, #1
	strb	r2, [r3, #10]
	ldrb	r3, [r4, #2881]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L546
	ldr	r7, [r4, #3148]
	cmp	r7, #0
	beq	.L543
.L546:
	add	r6, r5, #14912
	add	r6, r6, #8
.L477:
	ldr	r3, [r4, #3144]
	mov	r0, r6
	add	r6, r5, #16384
	str	r3, [r4, #3484]
	bl	AVS_UpdatePmvTable
	ldr	ip, [r4, #2776]
	ldr	r0, [r4, #2780]
	mov	r3, #0
	str	r3, [r6, #332]
	mov	r3, #1
	str	r3, [r6, #336]
	mov	lr, #6
	mul	r1, r0, ip
	add	r3, r5, #15232
	add	r2, r5, #16896
	add	r3, r3, #58
	add	r2, r2, #194
	sub	r1, r1, #1
	str	r1, [r6, #328]
	ldr	r1, [r4, #3200]
	str	ip, [r6, #388]
	cmp	r1, #0
	add	ip, r1, #63
	str	r0, [r6, #384]
	add	r0, r5, #15360
	movlt	r1, ip
	str	lr, [r6, #344]
	mov	r1, r1, asr lr
	str	r1, [r6, #340]
	ldr	r1, [r4, #3480]
	add	r0, r0, #58
	str	r1, [r6, #392]
	ldr	r1, [r4, #3476]
	str	r1, [r6, #396]
	ldrb	r1, [r4, #2894]	@ zero_extendqisi2
	str	r1, [r6, #400]
	ldrb	r1, [r4, #2893]	@ zero_extendqisi2
	str	r1, [r6, #404]
	ldrb	r1, [r4, #2892]	@ zero_extendqisi2
	str	r1, [r6, #408]
	ldrb	r1, [r4, #2886]	@ zero_extendqisi2
	str	r1, [r6, #412]
	ldrb	r1, [r4, #2885]	@ zero_extendqisi2
	str	r1, [r6, #416]
	ldrb	r1, [r4, #2884]	@ zero_extendqisi2
	str	r1, [r6, #420]
	ldrb	r1, [r4, #2883]	@ zero_extendqisi2
	str	r1, [r6, #424]
	ldrb	r1, [r4, #2882]	@ zero_extendqisi2
	str	r1, [r6, #428]
	ldr	r1, [r4, #3148]
	str	r1, [r6, #432]
	ldrb	r1, [r4, #2881]	@ zero_extendqisi2
	cmp	r1, #0
	moveq	r1, #1
	movne	r1, #3
	str	r1, [r6, #436]
	ldrb	r1, [r4, #2880]	@ zero_extendqisi2
	str	r1, [r6, #440]
	ldr	r1, [r4, #2924]
	str	r1, [r6, #444]
	ldr	r1, [r4, #2920]
	str	r1, [r6, #448]
	ldrb	r1, [r4, #2889]	@ zero_extendqisi2
	str	r1, [r6, #452]
	ldrb	r1, [r4, #2888]	@ zero_extendqisi2
	str	r1, [r6, #456]
	ldr	r1, [r4, #2928]
	str	r1, [r6, #532]
	ldr	r1, [r4, #2936]
	str	r1, [r6, #536]
	ldr	r1, [r4, #2940]
	str	r1, [r6, #544]
	ldr	r1, [r4, #2944]
	str	r1, [r6, #540]
.L480:
	ldrh	r1, [r3, #2]!
	cmp	r3, r0
	strh	r1, [r2, #2]!	@ movhi
	bne	.L480
	ldr	r3, [r4, #3132]
	str	r3, [r6, #548]
	ldr	r3, [r4, #3144]
	str	r3, [r6, #556]
	ldr	r3, [r4, #3140]
	str	r3, [r6, #552]
	ldr	r3, [r4, #2756]
	ldr	r0, [r5, #4]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	cmp	r3, #2
	ldr	r3, [r4, #2760]
	ldr	r1, [r3, #12]
	beq	.L553
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L554
	ldr	r3, [r4, #2760]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	cmp	r2, #1
	moveq	r2, #3
	movne	r2, #1
	str	r2, [r6, #460]
	ldrsb	r2, [r3, #10]
	str	r2, [r6, #464]
	ldr	r2, [r7, #36]
	str	r2, [r6, #484]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	cmp	r2, #1
	moveq	r2, #3
	movne	r2, #1
	str	r2, [r6, #476]
	ldrsb	r3, [r3, #10]
	str	r3, [r6, #480]
	ldr	r3, [r7, #36]
	str	r3, [r6, #488]
	ldr	r3, [r4, #2764]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	ldrne	r3, [r4, #2764]
	beq	.L555
.L547:
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	cmp	r2, #1
	moveq	r2, #3
	movne	r2, #1
	str	r2, [r6, #468]
	ldrsb	r3, [r3, #10]
	str	r3, [r6, #472]
	ldr	r3, [r7, #36]
	str	r3, [r6, #492]
	ldr	r3, [r4, #2760]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L556
	ldr	r3, [r7, #52]
	str	r3, [r6, #364]
	ldr	r3, [r4, #2764]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L557
	ldr	r3, [r7, #52]
	str	r3, [r6, #368]
	ldr	r3, [r4, #2768]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L558
	ldr	r3, [r7, #52]
	str	r3, [r6, #372]
	ldr	r3, [r4, #2756]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L559
	ldr	r3, [r7, #52]
	str	r3, [r6, #376]
	ldr	r3, [r7, #36]
	str	r3, [r6, #380]
	ldr	r3, [r7, #20]
	str	r3, [r6, #496]
	ldr	r3, [r4, #2760]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	cmp	r2, #1
	moveq	r2, #3
	movne	r2, #1
	str	r2, [r6, #500]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	adds	r3, r3, #0
	movne	r3, #1
	str	r3, [r6, #504]
	ldr	r3, [r4, #2756]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetPmvAddr
	str	r0, [r6, #560]
	ldr	r3, [r4, #2760]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetPmvAddr
	add	ip, r5, #15488
	add	ip, ip, #36
	mov	r2, #0
	str	r0, [r6, #572]
	add	r0, r5, #16896
	ldr	r3, [r4, #3148]
	add	r0, r0, #60
	cmp	r3, #2
	movne	r1, #0
	moveq	r1, #4
	moveq	lr, #8
	moveq	r7, #16
	movne	r7, #32
	movne	lr, r1
.L501:
	add	r2, r2, #1
	ldr	r3, [ip, #4]!
	cmp	r2, r7
	ubfx	r3, r3, #0, #18
	str	r3, [r0, #4]!
	blt	.L501
	cmp	lr, #0
	ble	.L506
	add	ip, r5, #15616
	add	r0, r5, #16896
	add	ip, ip, #36
	add	r0, r0, #124
	mov	r2, #0
.L505:
	add	r2, r2, #1
	ldr	r3, [ip, #4]!
	cmp	r2, lr
	ubfx	r3, r3, #0, #15
	str	r3, [r0, #4]!
	bne	.L505
.L506:
	cmp	r1, #0
	ble	.L504
	add	r0, r5, #15680
	add	lr, r5, #16896
	add	r0, r0, #24
	add	lr, lr, #156
	mov	ip, #0
.L507:
	ldr	r2, [r0, #4]
	add	ip, ip, #1
	ldr	r3, [r0], #8
	cmp	ip, r1
	ubfx	r2, r2, #0, #9
	ubfx	r3, r3, #0, #9
	orr	r3, r3, r2, asl #9
	str	r3, [lr, #4]!
	bne	.L507
	add	r0, r5, #15680
	add	r5, r5, #16896
	add	r0, r0, #4
	add	r5, r5, #172
	mov	r2, #0
.L508:
	add	r2, r2, #1
	ldr	r3, [r0, #4]!
	cmp	r2, r1
	ubfx	r3, r3, #0, #18
	str	r3, [r5, #4]!
	bne	.L508
.L504:
	ldr	r3, [r4, #3196]
	mov	r7, #1
	mov	r0, r7
	str	r3, [r6, #704]
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L548:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L560
.L459:
	mov	r7, #3
	mov	r0, r7
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L551:
	ldr	r1, .L563+12
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, r7
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L549:
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L471
.L545:
	mov	r0, r7
	bl	ResetVoQueue
	b	.L471
.L560:
	ldr	r3, [fp, #-44]
	cmp	r3, #32
	bgt	.L459
	ldr	r8, [r5, #16]
	cmp	r8, #0
	bne	.L459
	ldr	r3, [r4, #2792]
	cmp	r3, #0
	beq	.L458
	ldr	r1, [r4, #3548]
	cmp	r1, #0
	beq	.L458
	add	r6, r5, #16384
	ldr	r0, [r6, #836]
	cmp	r1, r0
	beq	.L458
	ldr	lr, [r4, #3552]
	ldr	ip, [r6, #840]
	cmp	lr, ip
	beq	.L458
	str	r1, [sp, #12]
	stmib	sp, {r0, lr}
	mov	r0, r2
	str	ip, [sp]
	ldr	r1, .L563+16
	bl	dprint_vfmw
	ldr	r2, .L563+20
	ldr	r3, [r4, #3548]
	ldr	r7, [r2]
	str	r3, [r6, #836]
	ldr	r3, [r4, #3552]
	cmp	r7, #0
	str	r3, [r6, #840]
	beq	.L458
	mov	r3, r8
	mov	r2, r8
	mov	r1, #120
	ldr	r0, [r5, #4]
	blx	r7
	b	.L458
.L550:
	ldr	r1, .L563+24
	mov	r0, #1
	bl	dprint_vfmw
	b	.L461
.L553:
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L561
	ldr	r3, [r4, #2760]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	cmp	r2, #1
	moveq	r2, #3
	movne	r2, #1
	str	r2, [r6, #460]
	ldrsb	r3, [r3, #10]
	str	r3, [r6, #464]
	ldr	r3, [r7, #36]
	str	r3, [r6, #484]
	ldr	r3, [r4, #2764]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	beq	.L562
	ldr	r3, [r4, #2764]
	ldrb	r2, [r3, #8]	@ zero_extendqisi2
	cmp	r2, #1
	moveq	r2, #3
	movne	r2, #1
	str	r2, [r6, #476]
	ldrsb	r3, [r3, #10]
	str	r3, [r6, #480]
	ldr	r3, [r7, #36]
	str	r3, [r6, #488]
	ldr	r3, [r4, #2768]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r7, r0, #0
	ldrne	r3, [r4, #2768]
	bne	.L547
	movw	r2, #1946
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L543:
	ldr	r3, [r4, #2756]
	mov	r2, #1
	ldr	r0, [r5, #4]
	add	r6, r5, #14912
	add	r6, r6, #8
	ldr	r1, [r3, #12]
	bl	FSP_SetRef
	ldr	r3, [r4, #2768]
	add	r2, r6, #4
	cmp	r3, r2
	beq	.L478
	mov	r2, r7
	ldr	r1, [r3, #12]
	ldr	r0, [r5, #4]
	bl	FSP_SetRef
.L478:
	ldr	r1, [r4, #2764]
	ldr	r2, [r4, #2760]
	ldr	r3, [r4, #2756]
	str	r1, [r4, #2768]
	str	r2, [r4, #2764]
	str	r3, [r4, #2760]
	b	.L477
.L552:
	movw	r2, #1845
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L556:
	movw	r2, #1970
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L557:
	movw	r2, #1974
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L558:
	movw	r2, #1978
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L555:
	movw	r2, #1963
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L554:
	movw	r2, #1954
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L559:
	movw	r2, #1982
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L562:
	movw	r2, #1940
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L561:
	movw	r2, #1934
	ldr	r1, .L563+28
	bl	dprint_vfmw
	b	.L461
.L564:
	.align	2
.L563:
	.word	.LC99
	.word	.LC101
	.word	.LC104
	.word	.LC103
	.word	.LC100
	.word	g_event_report
	.word	.LC102
	.word	.LC97
	UNWIND(.fnend)
	.size	AVS_GetStreamInf, .-AVS_GetStreamInf
	.align	2
	.global	AVS_PrepareDecode
	.type	AVS_PrepareDecode, %function
AVS_PrepareDecode:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	bl	AVS_GetStreamInf
	cmp	r0, #3
	ldmeqfd	sp, {fp, sp, pc}
	adds	r0, r0, #0
	movne	r0, #1
	ldmfd	sp, {fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_PrepareDecode, .-AVS_PrepareDecode
	.align	2
	.global	AVS_VerifyMemPara
	.type	AVS_VerifyMemPara, %function
AVS_VerifyMemPara:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	mov	r0, #1
	ldmfd	sp, {fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_VerifyMemPara, .-AVS_VerifyMemPara
	.align	2
	.global	AVSDEC_Init
	.type	AVSDEC_Init, %function
AVSDEC_Init:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r3, r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r3, r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	cmp	r1, #0
	cmpne	r0, #0
	mov	r8, r1
	mov	r4, r0
	moveq	r6, #1
	movne	r6, #0
	beq	.L573
	add	r5, r0, #16384
	ldr	r9, .L575
	add	r7, r0, #16192
	movw	r2, #17232
	ldr	r10, [r5, #152]
	mov	r1, r6
	ldr	r3, [r9, #48]
	blx	r3
	mov	r0, r7
	str	r10, [r5, #152]
	add	r5, r4, #14912
	bl	ResetVoQueue
	str	r8, [r4, #12]
	mov	r0, r4
	add	r8, r4, #15744
	bl	VCTRL_GetChanIDByCtx
	add	r5, r5, #8
	add	r8, r8, #36
	cmn	r0, #1
	str	r0, [r4, #4]
	beq	.L574
	ldr	r3, [r9, #48]
	mov	r2, #860
	mov	r1, r6
	mov	r0, r5
	blx	r3
	add	r3, r4, #12288
	add	r5, r5, #4
	mov	r2, #1024
	str	r5, [r3, #2756]
	mov	r0, #1
	str	r8, [r3, #3176]
	str	r5, [r3, #2768]
	str	r5, [r3, #2764]
	str	r5, [r3, #2760]
	str	r7, [r3, #3204]
	str	r2, [r3, #3200]
	ldr	r3, [r4, #12]
	str	r6, [r3, #920]
	ldmfd	sp, {r3, r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L573:
	movw	r2, #2927
	ldr	r1, .L575+4
	mov	r0, #0
	bl	dprint_vfmw
	mov	r0, #0
	ldmfd	sp, {r3, r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L574:
	mov	r0, r6
	ldr	r1, .L575+8
	bl	dprint_vfmw
	mvn	r0, #19
	ldmfd	sp, {r3, r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L576:
	.align	2
.L575:
	.word	vfmw_Osal_Func_Ptr_S
	.word	.LC97
	.word	.LC105
	UNWIND(.fnend)
	.size	AVSDEC_Init, .-AVSDEC_Init
	.align	2
	.global	AVSDEC_Destroy
	.type	AVSDEC_Destroy, %function
AVSDEC_Destroy:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	subs	r4, r0, #0
	beq	.L580
	mov	r0, #1
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L580:
	movw	r2, #2991
	ldr	r1, .L581
	bl	dprint_vfmw
	mov	r0, r4
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L582:
	.align	2
.L581:
	.word	.LC97
	UNWIND(.fnend)
	.size	AVSDEC_Destroy, .-AVSDEC_Destroy
	.align	2
	.global	AVSDEC_RecycleImage
	.type	AVSDEC_RecycleImage, %function
AVSDEC_RecycleImage:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	subs	r4, r0, #0
	mov	r5, r1
	beq	.L585
	mov	r2, #0
	ldr	r0, [r4, #4]
	bl	FSP_SetDisplay
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	FSP_GetFsImagePtr
	cmp	r0, #0
	beq	.L586
	add	r5, r0, #560
	add	r8, r0, #544
	ldr	r1, [r0, #544]
	mov	r6, #0
	ldr	r0, [r4, #4]
	mov	r7, #0
	bl	FreeUsdByDec
	strd	r6, [r8]
	ldr	r0, [r4, #4]
	ldr	r1, [r5, #-8]
	bl	FreeUsdByDec
	strd	r6, [r5, #-8]
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L585:
	mov	r0, r4
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L586:
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVSDEC_RecycleImage, .-AVSDEC_RecycleImage
	.align	2
	.global	AVSDEC_GetRemainImg
	.type	AVSDEC_GetRemainImg, %function
AVSDEC_GetRemainImg:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, r10, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #12)
	sub	sp, sp, #12
	subs	r5, r0, #0
	beq	.L603
	ldr	r3, [r5, #12]
	ldr	r3, [r3, #24]
	cmp	r3, #1
	beq	.L595
	add	r4, r5, #15040
	mov	r6, #0
	add	r4, r4, #20
	mov	r7, #0
	mov	r8, #3
	mvn	r9, #0
.L594:
	ldr	r3, [r4, #-4]!
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r10, r0, #0
	beq	.L591
	ldr	r3, [r4]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetDisplay
	cmp	r0, #2
	movne	r9, #1
	beq	.L604
.L591:
	subs	r8, r8, #1
	bne	.L594
	cmp	r9, #0
	bne	.L595
.L589:
	mov	r0, #0
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, pc}
.L595:
	add	r0, r5, #16192
	sub	sp, fp, #40
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, r10, fp, sp, lr}
	b	GetVoLastImageID
.L604:
	mov	r0, r5
	bl	AVS_SetImgFormat
	cmp	r8, #1
	streq	r8, [r10, #180]
	mov	r2, #1
	ldr	r3, [r4]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_SetDisplay
	ldr	r0, [r5, #4]
	add	r3, r5, #16192
	str	r10, [sp]
	mov	r2, r5
	mov	r1, #6
	bl	InsertImgToVoQueue
	cmp	r0, #1
	beq	.L593
	ldr	r1, [r10, #148]
	add	r9, r10, #544
	mov	r0, r5
	add	r10, r10, #560
	bl	AVSDEC_RecycleImage
	ldr	r1, [r10, #-16]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	strd	r6, [r9]
	ldr	r1, [r10, #-8]
	mvn	r9, #0
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	strd	r6, [r10, #-8]
	b	.L591
.L593:
	ldr	r3, [r10, #152]
	cmp	r3, #100
	bhi	.L598
	ldr	r3, [r10, #68]
	cmp	r3, #31
	bls	.L598
	ldr	r9, [r10, #72]
	cmp	r9, #31
	movhi	r9, #0
	mvnls	r9, #0
	b	.L591
.L598:
	mvn	r9, #0
	b	.L591
.L603:
	movw	r2, #3123
	ldr	r1, .L605
	bl	dprint_vfmw
	b	.L589
.L606:
	.align	2
.L605:
	.word	.LC97
	UNWIND(.fnend)
	.size	AVSDEC_GetRemainImg, .-AVSDEC_GetRemainImg
	.align	2
	.global	AVSDEC_GetImageBuffer
	.type	AVSDEC_GetImageBuffer, %function
AVSDEC_GetImageBuffer:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	subs	r4, r0, #0
	beq	.L614
	ldr	r0, [r4, #4]
	bl	FSP_IsNewFsAvalible
	cmp	r0, #1
	ldmeqfd	sp, {r4, r5, fp, sp, pc}
	ldr	r0, [r4, #4]
	bl	FSP_IsNewFsAvalible
	cmn	r0, #1
	beq	.L615
	mov	r0, #0
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L615:
	add	r1, r4, #16192
	ldr	r0, [r4, #4]
	bl	FSP_ClearNotInVoQueue
	mov	r0, #0
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L614:
	movw	r2, #3320
	ldr	r1, .L616
	bl	dprint_vfmw
	mov	r0, r4
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L617:
	.align	2
.L616:
	.word	.LC97
	UNWIND(.fnend)
	.size	AVSDEC_GetImageBuffer, .-AVSDEC_GetImageBuffer
	.align	2
	.global	ClearSlice
	.type	ClearSlice, %function
ClearSlice:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r4, r1, #4
	add	r8, r1, #12
	mov	r7, r1
	mov	r9, r0
	mov	r6, r1
	mov	r5, #0
.L620:
	ldr	r3, [r4, #4]!
	cmp	r3, #0
	ble	.L619
	ldr	r3, [r6]
	cmp	r3, #0
	bne	.L625
.L619:
	cmp	r4, r8
	str	r5, [r4]
	str	r5, [r6], #4
	str	r5, [r7, #16]
	bne	.L620
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L625:
	ldr	r1, [r4, #12]
	mov	r0, r9
	bl	SM_ReleaseStreamSeg
	b	.L619
	UNWIND(.fnend)
	.size	ClearSlice, .-ClearSlice
	.align	2
	.global	AVS_ClearCurPic
	.type	AVS_ClearCurPic, %function
AVS_ClearCurPic:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	cmn	r0, #20
	cmpne	r0, #0
	mov	r6, r0
	moveq	r0, #1
	movne	r0, #0
	beq	.L627
	add	r7, r6, #12288
	ldr	r3, [r7, #2168]
	cmp	r3, #0
	addgt	r5, r6, #120
	movgt	r4, r0
	ble	.L631
.L630:
	mov	r1, r5
	ldr	r0, [r6, #4]
	bl	ClearSlice
	ldr	r3, [r7, #2168]
	add	r4, r4, #1
	add	r5, r5, #28
	cmp	r3, r4
	bgt	.L630
.L631:
	mov	r3, #0
	mov	r0, #1
	str	r3, [r7, #2168]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L627:
	mov	r2, #3360
	ldr	r1, .L633
	mov	r0, #0
	bl	dprint_vfmw
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L634:
	.align	2
.L633:
	.word	.LC97
	UNWIND(.fnend)
	.size	AVS_ClearCurPic, .-AVS_ClearCurPic
	.align	2
	.type	AVS_DecodeArbiter.part.5, %function
AVS_DecodeArbiter.part.5:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #8)
	sub	sp, sp, #8
	ldr	r3, [r0, #12]
	mov	r6, r0
	add	r4, r0, #12288
	ldr	r3, [r3, #8]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L650
.L638:
	.word	.L637
	.word	.L639
	.word	.L640
	.word	.L650
	.word	.L637
.L640:
	ldr	r5, [r4, #3872]
	clz	r5, r5
	mov	r5, r5, lsr #5
.L636:
	cmp	r5, #0
	str	r3, [r4, #3448]
	beq	.L656
.L643:
	ldr	r3, [r4, #3872]
	cmp	r3, #1
	beq	.L657
.L646:
	cmp	r3, #2
	bne	.L648
	ldr	r3, [r4, #3452]
	cmp	r3, #1
	ble	.L647
.L648:
	add	r1, r4, #3520
	mov	r2, #376
	add	r1, r1, #4
	add	r0, r4, #2800
	bl	memcpy
	ldrb	ip, [r4, #2881]	@ zero_extendqisi2
	ldr	r3, [r4, #3148]
	mov	r0, #18
	ldr	r2, [r4, #3464]
	ldr	r1, .L658
	str	ip, [sp]
	bl	dprint_vfmw
	ldr	r3, [r4, #2784]
	mov	r0, #1
	bic	r3, r3, #311296
	str	r3, [r4, #2784]
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L639:
	ldr	r2, [r4, #3448]
	ldr	r5, [r4, #3872]
	cmp	r2, #2
	str	r3, [r4, #3448]
	moveq	r2, #0
	streq	r2, [r4, #3452]
	subs	r5, r5, #2
	movne	r5, #1
	cmp	r5, #0
	bne	.L643
.L656:
	mov	r0, r6
	bl	AVS_ClearCurPic
	ldr	r2, .L658+4
	ldr	r3, [r4, #2784]
	ldr	r7, [r2]
	bic	r3, r3, #311296
	str	r3, [r4, #2784]
	cmp	r7, #0
	beq	.L655
	ldr	r0, [r6, #4]
	mov	r3, r5
	mov	r2, r5
	mov	r1, #113
	blx	r7
	mov	r0, r5
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L637:
	ldr	r2, [r4, #3448]
	str	r3, [r4, #3448]
	cmp	r2, #2
	ldr	r3, [r4, #3872]
	moveq	r2, #0
	streq	r2, [r4, #3452]
	cmp	r3, #1
	bne	.L646
.L657:
	ldr	r3, [r4, #3452]
	cmp	r3, #0
	bgt	.L648
.L647:
	mov	r0, r6
	bl	AVS_ClearCurPic
	ldr	r2, .L658+4
	ldr	r3, [r4, #2784]
	ldr	r5, [r2]
	bic	r3, r3, #311296
	str	r3, [r4, #2784]
	cmp	r5, #0
	beq	.L655
	mov	r3, #0
	ldr	r0, [r6, #4]
	mov	r2, r3
	mov	r1, #113
	blx	r5
.L655:
	mov	r0, #0
	sub	sp, fp, #28
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L650:
	mov	r5, #1
	b	.L636
.L659:
	.align	2
.L658:
	.word	.LC106
	.word	g_event_report
	UNWIND(.fnend)
	.size	AVS_DecodeArbiter.part.5, .-AVS_DecodeArbiter.part.5
	.align	2
	.global	AVS_DecodeArbiter
	.type	AVS_DecodeArbiter, %function
AVS_DecodeArbiter:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r3, r0, #12288
	ldr	r3, [r3, #2784]
	and	r3, r3, #376832
	cmp	r3, #376832
	beq	.L662
	mov	r0, #0
	ldmfd	sp, {fp, sp, pc}
.L662:
	sub	sp, fp, #12
	ldmia	sp, {fp, sp, lr}
	b	AVS_DecodeArbiter.part.5
	UNWIND(.fnend)
	.size	AVS_DecodeArbiter, .-AVS_DecodeArbiter
	.align	2
	.global	AVSDEC_VDMPostProc
	.type	AVSDEC_VDMPostProc, %function
AVSDEC_VDMPostProc:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	subs	r5, r0, #0
	mov	r6, r1
	beq	.L714
	ldr	r2, [r5, #16]
	add	r4, r5, #12288
	add	r1, r2, #12288
	ldr	r3, [r4, #2756]
	ldrb	r2, [r2, #48]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r2, [r1, #2604]
	str	r2, [r3, #4]
	bl	AVS_ClearCurPic
	ldr	r3, .L724
	movw	r2, #14900
	mov	r1, #0
	add	r0, r5, #20
	ldr	r3, [r3, #48]
	blx	r3
	ldr	r3, [r4, #3148]
	cmp	r3, #0
	bne	.L666
	str	r6, [r4, #3456]
	ldr	r3, [r5, #12]
	ldr	r2, [r4, #3456]
	ldr	r3, [r3]
	cmp	r3, r2
	blt	.L715
.L670:
	mov	r0, r5
	bl	AVS_SetImgFormat
	ldr	r3, [r4, #2756]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r3, r0, #0
	beq	.L716
	ldr	r1, [r4, #3468]
	mov	r2, #0
	cmp	r1, #0
	strne	r1, [r3, #544]
	movne	r1, #0
	strne	r1, [r3, #548]
	ldr	r1, [r4, #3472]
	str	r2, [r4, #3468]
	cmp	r1, r2
	strne	r2, [r3, #556]
	strne	r1, [r3, #552]
	mov	r2, #0
	ldr	r3, [r4, #3148]
	str	r2, [r4, #3472]
	cmp	r3, #1
	bls	.L717
.L675:
	ldr	r7, [r4, #2756]
.L680:
	ldr	r1, [r7, #12]
	ldr	r0, [r5, #4]
	bl	FSP_GetFsImagePtr
	subs	r6, r0, #0
	beq	.L718
	add	r3, r5, #14912
	add	r3, r3, #12
	cmp	r7, r3
	beq	.L685
	ldr	r3, [r5, #12]
	ldr	r2, [r4, #3456]
	ldr	r3, [r3, #4]
	cmp	r3, r2
	bge	.L683
	ldr	r1, .L724+4
	mov	r0, #1
	add	r4, r6, #544
	bl	dprint_vfmw
	ldr	r1, [r7, #12]
	mov	r2, #0
	ldr	r0, [r5, #4]
	bl	FSP_SetDisplay
	ldrd	r2, [r4]
	orrs	r1, r2, r3
	bne	.L719
.L684:
	add	r6, r6, #560
	ldrd	r2, [r6, #-8]
	orrs	r1, r2, r3
	bne	.L720
.L685:
	mov	r4, #1
.L665:
	mov	r0, r4
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L683:
	mov	r0, r7
	mov	r1, r5
	bl	AVS_OutputOneFrame
	subs	r4, r0, #0
	bne	.L685
	add	r7, r6, #544
	ldrd	r2, [r7]
	orrs	r1, r2, r3
	bne	.L721
.L686:
	add	r6, r6, #560
	ldrd	r2, [r6, #-8]
	orrs	r1, r2, r3
	beq	.L665
	mov	r1, r2
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	mov	r2, #0
	mov	r3, #0
	strd	r2, [r6, #-8]
	b	.L665
.L666:
	ldr	r3, [r4, #2760]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r3, r0, #0
	beq	.L722
	ldr	r2, [r4, #2764]
	ldr	r0, [r5, #4]
	ldr	r7, [r3, #152]
	ldr	r1, [r2, #12]
	bl	FSP_GetFsImagePtr
	subs	r3, r0, #0
	beq	.L723
	ldr	r3, [r3, #152]
	ldr	r2, [r4, #3148]
	add	r3, r7, r3
	add	r6, r6, r3
	cmp	r6, #100
	movge	r6, #100
	str	r6, [r4, #3456]
	ldr	r3, [r5, #12]
	cmp	r2, #2
	ldr	r3, [r3]
	beq	.L670
	ldr	r2, [r4, #3456]
	cmp	r3, r2
	bge	.L670
.L715:
	ldr	r1, .L724+8
	mov	r0, #1
	bl	dprint_vfmw
	ldr	r3, [r4, #2760]
	mov	r2, #0
	str	r2, [r4, #3452]
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_GetFsImagePtr
	subs	r6, r0, #0
	beq	.L671
	ldr	r3, [r4, #2756]
	mov	r2, #1
	ldr	r0, [r5, #4]
	add	r8, r6, #560
	add	r7, r6, #576
	add	r9, r6, #544
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2760]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2764]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r3, [r4, #2768]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_ClearLogicFs
	ldr	r1, [r6, #544]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r6, #552]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r6, #560]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	ldr	r1, [r6, #568]
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	add	r3, r5, #14912
	mov	r0, #0
	mov	r1, #0
	add	r3, r3, #12
	strd	r0, [r9]
	strd	r0, [r8, #-8]
	strd	r0, [r8]
	strd	r0, [r7, #-8]
	str	r3, [r4, #2756]
	str	r3, [r4, #2768]
	str	r3, [r4, #2764]
	str	r3, [r4, #2760]
	ldr	r0, [r5, #4]
	bl	FSP_GetNullLogicFs
	str	r0, [r4, #2648]
.L671:
	mov	r3, #0
	str	r3, [r4, #3452]
	mov	r4, r3
	mov	r0, r4
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L717:
	ldr	r2, [r4, #3452]
	ldrb	r1, [r4, #2881]	@ zero_extendqisi2
	cmp	r2, #1
	addle	r2, r2, #1
	adds	r3, r3, #0
	str	r2, [r4, #3452]
	movne	r3, #1
	cmp	r1, #1
	orreq	r3, r3, #1
	cmp	r3, #0
	beq	.L677
	ldr	r3, [r4, #2756]
	mov	r2, #1
	ldr	r0, [r5, #4]
	ldr	r1, [r3, #12]
	bl	FSP_SetRef
	add	r3, r5, #14912
	ldr	r2, [r4, #2768]
	add	r3, r3, #12
	cmp	r2, r3
	beq	.L678
	ldr	r1, [r2, #12]
	mov	r2, #0
	ldr	r0, [r5, #4]
	bl	FSP_SetRef
.L678:
	ldr	r1, [r4, #2764]
	ldr	r2, [r4, #2760]
	ldr	r3, [r4, #2756]
	str	r1, [r4, #2768]
	str	r2, [r4, #2764]
	str	r3, [r4, #2760]
.L677:
	ldr	r3, [r5, #12]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	ldreq	r7, [r4, #2764]
	beq	.L680
	b	.L675
.L720:
	mov	r1, r2
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	mov	r4, #1
	mov	r2, #0
	mov	r3, #0
	strd	r2, [r6, #-8]
	b	.L665
.L719:
	mov	r1, r2
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	mov	r2, #0
	mov	r3, #0
	strd	r2, [r4]
	b	.L684
.L714:
	movw	r2, #3194
	ldr	r1, .L724+12
	mov	r4, r5
	bl	dprint_vfmw
	mov	r0, r4
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L721:
	mov	r1, r2
	ldr	r0, [r5, #4]
	bl	FreeUsdByDec
	mov	r2, #0
	mov	r3, #0
	strd	r2, [r7]
	b	.L686
.L716:
	movw	r2, #3237
	ldr	r1, .L724+12
	mov	r4, r3
	bl	dprint_vfmw
	b	.L665
.L718:
	movw	r2, #3274
	ldr	r1, .L724+12
	mov	r4, r6
	bl	dprint_vfmw
	b	.L665
.L722:
	movw	r2, #3212
	ldr	r1, .L724+12
	mov	r4, r3
	bl	dprint_vfmw
	b	.L665
.L723:
	mov	r2, #3216
	ldr	r1, .L724+12
	mov	r4, r3
	bl	dprint_vfmw
	b	.L665
.L725:
	.align	2
.L724:
	.word	vfmw_Osal_Func_Ptr_S
	.word	.LC108
	.word	.LC107
	.word	.LC97
	UNWIND(.fnend)
	.size	AVSDEC_VDMPostProc, .-AVSDEC_VDMPostProc
	.align	2
	.global	ClearPacket
	.type	ClearPacket, %function
ClearPacket:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r4, r0, #16384
	mov	r5, r0
	ldr	r0, [r0, #4]
	ldr	r1, [r4, #188]
	bl	SM_ReleaseStreamSeg
	ldrb	r3, [r4, #174]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L727
	ldrb	r3, [r4, #254]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L731
.L727:
	mov	r0, #1
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L731:
	ldr	r3, [r4, #260]
	cmp	r3, #0
	beq	.L727
	ldr	r1, [r4, #268]
	ldr	r0, [r5, #4]
	bl	SM_ReleaseStreamSeg
	b	.L727
	UNWIND(.fnend)
	.size	ClearPacket, .-ClearPacket
	.align	2
	.global	WriteAvsSliceMsg
	.type	WriteAvsSliceMsg, %function
WriteAvsSliceMsg:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	ip, r0, #12288
	mov	r4, r0
	ldr	r2, [ip, #2168]
	cmp	r2, #512
	bge	.L743
	cmp	r2, #0
	add	r1, r0, #16384
	ble	.L735
	sub	r3, r2, #1
	ldr	r0, [ip, #3548]
	ldr	r5, [r1, #168]
	mov	lr, r3, asl #5
	add	r0, r0, #15
	sub	r3, lr, r3, asl #2
	ldrb	lr, [r5, #3]	@ zero_extendqisi2
	mov	r0, r0, lsr #4
	add	r3, r4, r3
	mul	r0, lr, r0
	ldr	r3, [r3, #136]
	cmp	r0, r3
	bls	.L744
.L735:
	mov	lr, r2, asl #2
	mov	r5, r2, asl #5
	ldr	r6, [r1, #180]
	rsb	r3, lr, r5
	add	r3, r4, r3
	cmp	r2, #0
	add	r0, r3, #132
	str	r6, [r3, #120]
	ldr	r6, [r1, #188]
	str	r6, [r0, #8]
	ldr	r6, [r1, #184]
	str	r6, [r3, #128]
	streq	r2, [r4, #136]
	bne	.L745
.L737:
	ldrb	r3, [r1, #174]	@ zero_extendqisi2
	rsb	lr, lr, r5
	cmp	r3, #1
	beq	.L746
	ldr	r3, [r1, #260]
	add	r4, r4, lr
	str	r3, [r4, #124]
	ldr	r3, [r1, #268]
	str	r3, [r4, #144]
	ldr	r3, [r1, #264]
	str	r3, [r4, #132]
.L739:
	add	r2, r2, #1
	mov	r0, #1
	str	r2, [ip, #2168]
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L745:
	ldr	r6, [r1, #168]
	ldr	r3, [ip, #3548]
	add	r3, r3, #15
	ldrb	r7, [r6, #3]	@ zero_extendqisi2
	mov	r3, r3, lsr #4
	mul	r7, r7, r3
	str	r7, [r0, #4]
	ldr	r3, [ip, #2824]
	ldr	r6, [ip, #2828]
	add	r0, r3, #15
	add	r6, r6, #15
	mov	r3, r0, lsr #4
	mov	r6, r6, lsr #4
	mul	r3, r3, r6
	sub	r3, r3, #1
	cmp	r7, r3
	bls	.L737
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L743:
	mov	r3, #512
	ldr	r1, .L747
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L744:
	mov	r2, r0
	ldr	r1, .L747+4
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, r4
	bl	ClearPacket
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L746:
	add	r4, r4, lr
	mov	r3, #0
	add	r4, r4, #128
	str	r3, [r4, #-4]
	str	r3, [r4, #16]
	str	r3, [r4, #4]
	b	.L739
.L748:
	.align	2
.L747:
	.word	.LC109
	.word	.LC110
	UNWIND(.fnend)
	.size	WriteAvsSliceMsg, .-WriteAvsSliceMsg
	.align	2
	.global	AVS_GetPacketState
	.type	AVS_GetPacketState, %function
AVS_GetPacketState:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	subs	r4, r0, #0
	beq	.L752
	add	r4, r4, #16384
	ldr	r0, [r4, #160]
	subs	r0, r0, #1
	movne	r0, #1
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L752:
	movw	r2, #3460
	ldr	r1, .L753
	bl	dprint_vfmw
	mov	r0, r4
	ldmfd	sp, {r4, r5, fp, sp, pc}
.L754:
	.align	2
.L753:
	.word	.LC97
	UNWIND(.fnend)
	.size	AVS_GetPacketState, .-AVS_GetPacketState
	.align	2
	.global	Avs_Vfmw_WQMatrix
	.type	Avs_Vfmw_WQMatrix, %function
Avs_Vfmw_WQMatrix:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	UNWIND(.pad #304)
	sub	sp, sp, #304
	ldr	r7, [r0, #148]
	mov	r3, #0
	ldr	lr, [r0, #132]
	cmp	r7, #1
	str	r3, [fp, #-340]
	str	r3, [fp, #-336]
	str	r3, [fp, #-332]
	str	r3, [fp, #-328]
	str	r3, [fp, #-324]
	str	r3, [fp, #-320]
	beq	.L758
	clz	r3, lr
	cmp	r7, #3
	cmpeq	lr, #0
	mov	r3, r3, lsr #5
	beq	.L758
	cmp	r7, #2
	addeq	r3, r0, #176
	beq	.L760
	cmp	r3, #0
	bne	.L792
.L793:
	sub	lr, fp, #316
	cmp	r7, #0
	mov	r3, #128
	strh	r3, [lr]	@ movhi
	strh	r3, [lr, #2]	@ movhi
	strh	r3, [lr, #4]	@ movhi
	strh	r3, [lr, #6]	@ movhi
	strh	r3, [lr, #8]	@ movhi
	strh	r3, [lr, #10]	@ movhi
	strh	r3, [lr, #12]	@ movhi
	strh	r3, [lr, #14]	@ movhi
	strh	r3, [lr, #16]	@ movhi
	strh	r3, [lr, #18]	@ movhi
	strh	r3, [lr, #20]	@ movhi
	strh	r3, [lr, #22]	@ movhi
	bne	.L842
	ldr	r3, .L848
	add	r2, lr, #10
	add	ip, r3, #12
.L774:
	ldrh	r1, [r3, #2]!
	cmp	r3, ip
	strh	r1, [r2, #2]!	@ movhi
	bne	.L774
.L767:
	add	ip, r0, #202
	add	r2, r0, #328
	add	r2, r2, #2
	mov	r1, #128
	mov	r3, ip
.L778:
	strh	r1, [r3, #2]!	@ movhi
	cmp	r3, r2
	bne	.L778
	ldr	r3, [r0, #128]
	cmp	r3, #0
	beq	.L795
	ldr	r9, [r0, #152]
	mov	r8, #0
	ldr	r3, .L848+4
	mov	r9, r9, asl #6
	add	r6, r9, #64
	add	r9, r3, r9
	add	r6, r3, r6
.L796:
	sub	r3, fp, #292
	mov	r4, r8, asl #3
	add	r5, r3, r8, lsl #7
	sub	r4, r4, r8, asl #1
	sub	r5, r5, #2
	mov	r2, r9
.L786:
	add	r0, r2, #8
	mov	r1, r5
.L784:
	ldrb	r3, [r2], #1	@ zero_extendqisi2
	add	r3, r4, r3
	cmp	r0, r2
	mov	r3, r3, asl #1
	ldrh	r3, [lr, r3]
	strh	r3, [r1, #2]!	@ movhi
	bne	.L784
	cmp	r0, r6
	add	r5, r5, #16
	mov	r2, r0
	bne	.L786
	add	r8, r8, #1
	cmp	r8, #2
	bne	.L796
.L782:
	cmp	r7, #0
	subeq	r3, fp, #166
	subeq	r1, fp, #38
	beq	.L787
	cmp	r7, #1
	beq	.L843
	cmp	r7, #2
	beq	.L844
.L755:
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L758:
	ldr	r4, .L848+8
	add	r1, r0, #152
	sub	ip, fp, #340
	add	r3, r0, #176
.L757:
	ldr	r5, [r1, #4]!
	ldrh	r2, [r4], #2
	cmp	r1, r3
	add	r2, r2, r5
	strh	r2, [ip], #2	@ movhi
	bne	.L757
	cmp	r7, #2
	beq	.L760
	cmp	lr, #0
	cmpeq	r7, #3
	bne	.L761
.L760:
	ldr	ip, .L848
	sub	r1, fp, #328
	add	r5, r0, #200
.L762:
	ldr	r4, [r3, #4]!
	ldrh	r2, [ip, #2]!
	cmp	r3, r5
	add	r2, r2, r4
	strh	r2, [r1], #2	@ movhi
	bne	.L762
.L761:
	cmp	lr, #0
	bne	.L793
.L792:
	ldr	r3, .L848+8
	sub	lr, fp, #316
	add	ip, r3, #12
	mov	r5, lr
	mov	r2, lr
.L765:
	ldrh	r1, [r3], #2
	cmp	r3, ip
	strh	r1, [r2], #2	@ movhi
	bne	.L765
	ldr	r3, .L848
	add	r4, lr, #10
	add	ip, r3, #12
	mov	r2, r4
.L766:
	ldrh	r1, [r3, #2]!
	cmp	r3, ip
	strh	r1, [r2, #2]!	@ movhi
	bne	.L766
	cmp	r7, #0
	beq	.L767
	cmp	r7, #1
	beq	.L845
	cmp	r7, #2
	beq	.L846
	cmp	r7, #3
	bne	.L767
	sub	r3, fp, #340
	sub	r1, fp, #328
.L772:
	ldrh	r2, [r3], #2
	cmp	r3, r1
	strh	r2, [r5], #2	@ movhi
	bne	.L772
	add	r1, lr, #22
.L773:
	ldrh	r2, [r3], #2
	strh	r2, [r4, #2]!	@ movhi
	cmp	r4, r1
	bne	.L773
	b	.L767
.L787:
	ldrh	r2, [r3, #2]!
	cmp	r3, r1
	strh	r2, [ip, #2]!	@ movhi
	beq	.L755
	ldrh	r2, [r3, #2]!
	cmp	r3, r1
	strh	r2, [ip, #2]!	@ movhi
	bne	.L787
	b	.L755
.L795:
	sub	r0, fp, #166
	add	lr, fp, #90
	mov	r1, #128
.L797:
	sub	r3, r0, #128
.L783:
	add	r2, r3, #16
.L780:
	strh	r1, [r3, #2]!	@ movhi
	cmp	r2, r3
	bne	.L780
	cmp	r2, r0
	mov	r3, r2
	bne	.L783
	add	r0, r0, #128
	cmp	r0, lr
	bne	.L797
	b	.L782
.L842:
	cmp	r7, #1
	beq	.L847
	cmp	r7, #2
	bne	.L767
	sub	r2, fp, #328
	add	r3, lr, #10
	add	ip, lr, #22
.L777:
	ldrh	r1, [r2], #2
	strh	r1, [r3, #2]!	@ movhi
	cmp	r3, ip
	bne	.L777
	b	.L767
.L847:
	sub	r3, fp, #340
	sub	ip, fp, #328
	mov	r2, lr
.L776:
	ldrh	r1, [r3], #2
	cmp	r3, ip
	strh	r1, [r2], #2	@ movhi
	bne	.L776
	b	.L767
.L845:
	sub	r3, fp, #340
	sub	r1, fp, #328
.L769:
	ldrh	r2, [r3], #2
	cmp	r3, r1
	strh	r2, [r5], #2	@ movhi
	bne	.L769
	b	.L767
.L844:
	sub	r3, fp, #166
	sub	r1, fp, #38
.L791:
	ldrh	r2, [r3, #2]!
	cmp	r3, r1
	strh	r2, [ip, #2]!	@ movhi
	bne	.L791
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L843:
	sub	r3, fp, #292
	sub	r1, fp, #166
	sub	r3, r3, #2
.L789:
	ldrh	r2, [r3, #2]!
	cmp	r3, r1
	strh	r2, [ip, #2]!	@ movhi
	bne	.L789
	sub	sp, fp, #36
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L846:
	sub	r3, fp, #328
	add	r1, lr, #22
.L771:
	ldrh	r2, [r3], #2
	strh	r2, [r4, #2]!	@ movhi
	cmp	r4, r1
	bne	.L771
	b	.L767
.L849:
	.align	2
.L848:
	.word	.LANCHOR1+10
	.word	.LANCHOR0+80
	.word	.LANCHOR1
	UNWIND(.fnend)
	.size	Avs_Vfmw_WQMatrix, .-Avs_Vfmw_WQMatrix
	.align	2
	.global	AVS_ParseHeader
	.type	AVS_ParseHeader, %function
AVS_ParseHeader:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, r8, r9, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, r8, r9, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	add	r7, r0, #12288
	add	r8, r0, #16384
	mov	r3, #0
	add	r9, r0, #14912
	ldr	r6, [r7, #3176]
	add	r5, r0, #15808
	str	r3, [r8, #160]
	mov	r4, r0
	mov	r1, #32
	add	r9, r9, #8
	mov	r0, r6
	add	r5, r5, #4
	bl	BsShow
	uxtb	r0, r0
	sub	r3, r0, #176
	cmp	r3, #78
	ldrls	pc, [pc, r3, asl #2]
	b	.L851
.L853:
	.word	.L852
	.word	.L854
	.word	.L855
	.word	.L856
	.word	.L857
	.word	.L858
	.word	.L859
	.word	.L860
	.word	.L857
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L851
	.word	.L861
.L851:
	cmp	r0, #175
	bhi	.L857
	ldr	r3, [r7, #2784]
	and	r2, r3, #327680
	cmp	r2, #327680
	beq	.L898
.L857:
	mov	r0, r4
	bl	ClearPacket
.L894:
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L856:
	ldr	r3, [r7, #2784]
	ands	r6, r3, #32768
	bne	.L892
	tst	r3, #262144
	beq	.L866
	bic	r3, r3, #311296
	mov	r0, r9
	str	r3, [r7, #2784]
	mov	r1, r5
	bl	AVS_i_picture_header
	b	.L896
.L858:
	ldr	r3, [r7, #2784]
	tst	r3, #327680
	beq	.L870
	mov	r1, r5
	mov	r0, r9
	bl	AVS_extension
	mov	r0, r4
	bl	ClearPacket
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L859:
	ldr	r3, [r7, #2784]
	ands	r6, r3, #32768
	bne	.L892
	tst	r3, #262144
	beq	.L868
	bic	r3, r3, #311296
	mov	r0, r9
	str	r3, [r7, #2784]
	mov	r1, r5
	bl	AVS_pb_picture_header
.L896:
	mov	r0, r5
	bl	Avs_Vfmw_WQMatrix
	mov	r0, r4
	bl	ClearPacket
	mov	r0, r6
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L860:
	ldr	r3, [r7, #2784]
	ands	r5, r3, #32768
	bne	.L891
	tst	r3, #327680
	beq	.L894
.L897:
	bic	r3, r3, #311296
	mov	r0, r4
	str	r3, [r7, #2784]
	bl	ClearPacket
	mov	r0, r5
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L861:
	mov	r1, #32
	mov	r0, r6
	bl	BsSkip
	mov	r1, #32
	mov	r0, r6
	bl	BsGet
	mov	r1, #32
	mov	r5, r0
	mov	r0, r6
	bl	BsGet
	movw	r2, #20036
	movw	r3, #20553
	movt	r2, 17221
	movt	r3, 18515
	cmp	r0, r2
	cmpeq	r5, r3
	bne	.L870
	mov	r5, #1
	strb	r5, [r4]
	str	r5, [r8, #160]
	mov	r0, r4
	ldr	r3, [r7, #2784]
	orr	r3, r3, #16384
	str	r3, [r7, #2784]
	bl	ClearPacket
	mov	r0, r5
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L854:
	ldr	r3, [r7, #2784]
	ands	r5, r3, #32768
	bne	.L891
	tst	r3, #327680
	beq	.L857
	b	.L897
.L855:
	ldr	r3, [r7, #2784]
	ands	r1, r3, #262144
	movne	r1, #1
	bne	.L893
	tst	r3, #65536
	beq	.L870
.L893:
	mov	r0, r4
	bl	AVS_user_data
	mov	r0, r4
	bl	ClearPacket
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L852:
	ldr	r3, [r7, #2784]
	ands	r6, r3, #32768
	bne	.L891
	tst	r3, #65536
	beq	.L864
	bic	r3, r3, #311296
	mov	r1, r5
	str	r3, [r7, #2784]
	mov	r0, r4
	bl	AVS_sequence_header
	mov	r0, r4
	bl	ClearPacket
	mov	r0, r6
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L898:
	orr	r3, r3, #32768
	mov	r0, r4
	str	r3, [r7, #2784]
	bl	WriteAvsSliceMsg
	cmp	r0, #0
	bne	.L894
.L870:
	mov	r0, r4
	bl	ClearPacket
	mov	r0, #0
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L891:
	mov	r0, #1
	orr	r3, r3, #16384
	str	r0, [r8, #160]
	str	r3, [r7, #2784]
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L868:
	mov	r0, r9
	mov	r1, r5
	bl	AVS_pb_picture_header
.L895:
	mov	r0, r5
	bl	Avs_Vfmw_WQMatrix
	mov	r0, r4
	bl	ClearPacket
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L866:
	mov	r0, r9
	mov	r1, r5
	bl	AVS_i_picture_header
	b	.L895
.L864:
	mov	r1, r5
	mov	r0, r4
	bl	AVS_sequence_header
	mov	r0, r4
	bl	ClearPacket
	mov	r0, #1
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
.L892:
	orr	r3, r3, #16384
	mov	r0, r5
	mov	r4, #1
	str	r4, [r8, #160]
	str	r3, [r7, #2784]
	bl	Avs_Vfmw_WQMatrix
	mov	r0, r4
	ldmfd	sp, {r4, r5, r6, r7, r8, r9, fp, sp, pc}
	UNWIND(.fnend)
	.size	AVS_ParseHeader, .-AVS_ParseHeader
	.align	2
	.global	AVSDEC_Decode
	.type	AVSDEC_Decode, %function
AVSDEC_Decode:
	UNWIND(.fnstart)
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	UNWIND(.movsp ip)
	mov	ip, sp
	stmfd	sp!, {r4, r5, r6, r7, fp, ip, lr, pc}
	UNWIND(.pad #4)
	UNWIND(.save {r4, r5, r6, r7, fp, ip, lr})
	UNWIND(.setfp fp, ip, #-4)
	sub	fp, ip, #4
	cmp	r1, #0
	cmpne	r0, #0
	mov	r4, r0
	mov	r5, r1
	beq	.L913
	add	r0, r0, #15744
	ldr	r2, [r1, #16]
	add	r0, r0, #36
	ldr	r1, [r1]
	bl	BsInit
	ldr	r3, .L916
	add	r6, r4, #12288
	add	r0, r4, #16384
	mov	r1, r5
	mov	r2, #160
	ldr	r3, [r3, #52]
	add	r0, r0, #168
	blx	r3
	ldr	r3, [r6, #2784]
	mov	r0, r4
	str	r3, [r6, #3488]
	bl	AVS_ParseHeader
	subs	r5, r0, #0
	beq	.L914
	ldr	r3, [r6, #2784]
	and	r3, r3, #376832
	cmp	r3, #376832
	beq	.L903
.L904:
	mov	r5, #0
.L901:
	mov	r0, r5
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L913:
	mov	r0, #0
	movw	r2, #3019
	mov	r5, r0
	ldr	r1, .L916+4
	bl	dprint_vfmw
	mov	r0, r5
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L914:
	ldr	r1, .L916+8
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, r4
	bl	AVS_ClearCurPic
	mov	r0, r5
	ldmfd	sp, {r4, r5, r6, r7, fp, sp, pc}
.L903:
	mov	r0, r4
	bl	AVS_DecodeArbiter.part.5
	cmp	r0, #0
	beq	.L904
	mov	r0, r4
	bl	AVS_GetStreamInf
	cmp	r0, #3
	beq	.L905
	adds	r5, r0, #0
	movne	r5, #1
	cmp	r5, #0
	beq	.L915
	mov	r0, r4
	bl	AVS_StartDecode
	subs	r6, r0, #0
	bne	.L901
	ldr	r1, .L916+12
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, r4
	bl	AVS_ClearCurPic
	mov	r5, r6
	b	.L901
.L915:
	ldr	r1, .L916+16
	mov	r0, #1
	bl	dprint_vfmw
	mov	r0, r4
	bl	AVS_ClearCurPic
	b	.L901
.L905:
	ldr	r3, [r6, #3488]
	mov	r5, r0
	str	r3, [r6, #2784]
	b	.L901
.L917:
	.align	2
.L916:
	.word	vfmw_Osal_Func_Ptr_S
	.word	.LC97
	.word	.LC111
	.word	.LC113
	.word	.LC112
	UNWIND(.fnend)
	.size	AVSDEC_Decode, .-AVSDEC_Decode
	.global	g_tmp
	.global	wq_param_default
	.global	g_AvsCfg
	.section	.rodata
	.align	2
.LANCHOR0 = . + 0
	.type	frame_rate_Table, %object
	.size	frame_rate_Table, 64
frame_rate_Table:
	.word	0
	.word	24551
	.word	24576
	.word	25600
	.word	30689
	.word	30720
	.word	51200
	.word	61378
	.word	61440
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.word	-1
	.type	CSWTCH.56, %object
	.size	CSWTCH.56, 16
CSWTCH.56:
	.word	5
	.word	1
	.word	2
	.word	3
	.type	WeightQuantModel, %object
	.size	WeightQuantModel, 256
WeightQuantModel:
	.byte	0
	.byte	0
	.byte	0
	.byte	4
	.byte	4
	.byte	4
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	3
	.byte	3
	.byte	3
	.byte	3
	.byte	5
	.byte	5
	.byte	0
	.byte	3
	.byte	2
	.byte	2
	.byte	1
	.byte	1
	.byte	5
	.byte	5
	.byte	4
	.byte	3
	.byte	2
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	4
	.byte	3
	.byte	1
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	4
	.byte	3
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	0
	.byte	4
	.byte	4
	.byte	4
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	4
	.byte	4
	.byte	4
	.byte	4
	.byte	5
	.byte	5
	.byte	0
	.byte	3
	.byte	2
	.byte	2
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	3
	.byte	3
	.byte	2
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	3
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	3
	.byte	3
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	0
	.byte	4
	.byte	4
	.byte	3
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	4
	.byte	4
	.byte	3
	.byte	2
	.byte	5
	.byte	5
	.byte	0
	.byte	4
	.byte	4
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	4
	.byte	4
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	4
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	0
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	0
	.byte	0
	.byte	4
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	0
	.byte	4
	.byte	4
	.byte	3
	.byte	2
	.byte	1
	.byte	5
	.byte	5
	.byte	3
	.byte	3
	.byte	3
	.byte	3
	.byte	2
	.byte	5
	.byte	5
	.byte	5
	.byte	2
	.byte	2
	.byte	2
	.byte	2
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	1
	.byte	1
	.byte	1
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.byte	5
	.data
	.align	2
.LANCHOR1 = . + 0
	.type	wq_param_default, %object
	.size	wq_param_default, 24
wq_param_default:
	.short	135
	.short	143
	.short	143
	.short	160
	.short	160
	.short	213
	.short	128
	.short	98
	.short	106
	.short	116
	.short	116
	.short	128
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	ASCII(.ascii	"%-40s     %#-8x(%db)\012\000" )
	.space	2
.LC1:
	ASCII(.ascii	"video_sequence_start_code\000" )
	.space	2
.LC2:
	ASCII(.ascii	"profile_id\000" )
	.space	1
.LC3:
	ASCII(.ascii	"level_id\000" )
	.space	3
.LC4:
	ASCII(.ascii	"progressive_sequence\000" )
	.space	3
.LC5:
	ASCII(.ascii	"horizontal_size\000" )
.LC6:
	ASCII(.ascii	"vertical_size\000" )
	.space	2
.LC7:
	ASCII(.ascii	"chroma_format\000" )
	.space	2
.LC8:
	ASCII(.ascii	"sample_precision\000" )
	.space	3
.LC9:
	ASCII(.ascii	"aspect_ratio\000" )
	.space	3
.LC10:
	ASCII(.ascii	"frame_rate_code\000" )
.LC11:
	ASCII(.ascii	"bit_rate_lower\000" )
	.space	1
.LC12:
	ASCII(.ascii	"marker_bit\000" )
	.space	1
.LC13:
	ASCII(.ascii	"bit_rate_upper\000" )
	.space	1
.LC14:
	ASCII(.ascii	"low_delay\000" )
	.space	2
.LC15:
	ASCII(.ascii	"bbv_buffer_size\000" )
.LC16:
	ASCII(.ascii	"reserved_bits\000" )
	.space	2
.LC17:
	ASCII(.ascii	"i_picture_start_code\000" )
	.space	3
.LC18:
	ASCII(.ascii	"bbv_delay\000" )
	.space	2
.LC19:
	ASCII(.ascii	"bbv_delay_extension\000" )
.LC20:
	ASCII(.ascii	"time_code_flag\000" )
	.space	1
.LC21:
	ASCII(.ascii	"time_code\000" )
	.space	2
.LC22:
	ASCII(.ascii	"picture_distance\000" )
	.space	3
.LC23:
	ASCII(.ascii	"bbv_check_times\000" )
.LC24:
	ASCII(.ascii	"progressive_frame\000" )
	.space	2
.LC25:
	ASCII(.ascii	"picture_structure\000" )
	.space	2
.LC26:
	ASCII(.ascii	"top_field_first\000" )
.LC27:
	ASCII(.ascii	"repeat_first_field\000" )
	.space	1
.LC28:
	ASCII(.ascii	"fixed_picture_qp\000" )
	.space	3
.LC29:
	ASCII(.ascii	"picture_qp\000" )
	.space	1
.LC30:
	ASCII(.ascii	"skip_mode_flag\000" )
	.space	1
.LC31:
	ASCII(.ascii	"loop_filter_disable\000" )
.LC32:
	ASCII(.ascii	"loop_filter_parameter_flag\000" )
	.space	1
.LC33:
	ASCII(.ascii	"alpha_c_offset\000" )
	.space	1
.LC34:
	ASCII(.ascii	"beta_offset\000" )
.LC35:
	ASCII(.ascii	"weighting_quant_flag\000" )
	.space	3
.LC36:
	ASCII(.ascii	"aec_enable\000" )
	.space	1
.LC37:
	ASCII(.ascii	"mb_adapt_weighting_quant_disable\000" )
	.space	3
.LC38:
	ASCII(.ascii	"chroma_quant_param_disable\000" )
	.space	1
.LC39:
	ASCII(.ascii	"chroma_quant_param_delta_u\000" )
	.space	1
.LC40:
	ASCII(.ascii	"chroma_quant_param_delta_v\000" )
	.space	1
.LC41:
	ASCII(.ascii	"weighting_quant_param_index\000" )
.LC42:
	ASCII(.ascii	"weighting_quant_model\000" )
	.space	2
.LC43:
	ASCII(.ascii	"weighting_quant_param_deltal1\000" )
	.space	2
.LC44:
	ASCII(.ascii	"weighting_quant_param_deltal2\000" )
	.space	2
.LC45:
	ASCII(.ascii	"pb_picture_start_code\000" )
	.space	2
.LC46:
	ASCII(.ascii	"picture_coding_type\000" )
.LC47:
	ASCII(.ascii	"advanced_pred_mode_disable\000" )
	.space	1
.LC48:
	ASCII(.ascii	"picture_reference_flag\000" )
	.space	1
.LC49:
	ASCII(.ascii	"no_forward_reference_flag\000" )
	.space	2
.LC50:
	ASCII(.ascii	"b_filed_enhanced_flag\000" )
	.space	2
.LC51:
	ASCII(.ascii	"p_filed_enhanced_flag\000" )
	.space	2
.LC52:
	ASCII(.ascii	"user_data_start_code\000" )
	.space	3
.LC53:
	ASCII(.ascii	"extension_ID\000" )
	.space	3
.LC54:
	ASCII(.ascii	"video_format\000" )
	.space	3
.LC55:
	ASCII(.ascii	"sample_range\000" )
	.space	3
.LC56:
	ASCII(.ascii	"colour_description\000" )
	.space	1
.LC57:
	ASCII(.ascii	"colour_primaries\000" )
	.space	3
.LC58:
	ASCII(.ascii	"transfer_characteristics\000" )
	.space	3
.LC59:
	ASCII(.ascii	"matrix_coefficients\000" )
.LC60:
	ASCII(.ascii	"display_horizontal_size\000" )
.LC61:
	ASCII(.ascii	"display_vertical_size\000" )
	.space	2
.LC62:
	ASCII(.ascii	"copyright_flag\000" )
	.space	1
.LC63:
	ASCII(.ascii	"copyright_id\000" )
	.space	3
.LC64:
	ASCII(.ascii	"original_or_copy\000" )
	.space	3
.LC65:
	ASCII(.ascii	"copyright_number_1\000" )
	.space	1
.LC66:
	ASCII(.ascii	"copyright_number_2\000" )
	.space	1
.LC67:
	ASCII(.ascii	"copyright_number_3\000" )
	.space	1
.LC68:
	ASCII(.ascii	"camera_id\000" )
	.space	2
.LC69:
	ASCII(.ascii	"height_of_image_device\000" )
	.space	1
.LC70:
	ASCII(.ascii	"focal_length\000" )
	.space	3
.LC71:
	ASCII(.ascii	"f_number\000" )
	.space	3
.LC72:
	ASCII(.ascii	"vertical_angle_of_view\000" )
	.space	1
.LC73:
	ASCII(.ascii	"camera_position_x_upper\000" )
.LC74:
	ASCII(.ascii	"camera_position_x_lower\000" )
.LC75:
	ASCII(.ascii	"camera_position_y_upper\000" )
.LC76:
	ASCII(.ascii	"camera_position_y_lower\000" )
.LC77:
	ASCII(.ascii	"camera_position_z_upper\000" )
.LC78:
	ASCII(.ascii	"camera_position_z_lower\000" )
.LC79:
	ASCII(.ascii	"camera_direction_x\000" )
	.space	1
.LC80:
	ASCII(.ascii	"camera_direction_y\000" )
	.space	1
.LC81:
	ASCII(.ascii	"camera_direction_z\000" )
	.space	1
.LC82:
	ASCII(.ascii	"image_plane_vertical_x\000" )
	.space	1
.LC83:
	ASCII(.ascii	"image_plane_vertical_y\000" )
	.space	1
.LC84:
	ASCII(.ascii	"image_plane_vertical_z\000" )
	.space	1
.LC85:
	ASCII(.ascii	"frame_centre_horizontal_offset\000" )
	.space	1
.LC86:
	ASCII(.ascii	"frame_centre_vertical_offset\000" )
	.space	3
.LC87:
	ASCII(.ascii	"extension_start_code\000" )
	.space	3
.LC88:
	ASCII(.ascii	"ERROR: image size abnormal(%dx%d)\012\000" )
	.space	1
.LC89:
	ASCII(.ascii	"avs actual frame size(%dx%d) exeed max config(%dx%d" )
	ASCII(.ascii	")\012\000" )
	.space	2
.LC90:
	ASCII(.ascii	"ERROR: partition fs memory fail!\012\000" )
	.space	2
.LC91:
	ASCII(.ascii	"ERROR: FSP_ConfigInstance fail!\012\000" )
	.space	3
.LC92:
	ASCII(.ascii	"line: %d, pImage is NULL!\012\000" )
	.space	1
.LC93:
	ASCII(.ascii	"line: %d pImage is null\012\000" )
	.space	3
.LC94:
	ASCII(.ascii	"ERROR: get frame store fail!\012\000" )
	.space	2
.LC95:
	ASCII(.ascii	"get image buffer ok: LogicFsID = %d\012\000" )
	.space	3
.LC96:
	ASCII(.ascii	"decode %p, disp %p, tf %p\012\000" )
	.space	1
.LC97:
	ASCII(.ascii	"line: %d\012\000" )
	.space	2
.LC98:
	ASCII(.ascii	"ERROR: AVS_OutputOneFrame is err(%d)\012\000" )
	.space	2
.LC99:
	ASCII(.ascii	"size change\012\000" )
	.space	3
.LC100:
	ASCII(.ascii	"IsSizeChanged = %d,TotalPicNum = %d,old w/h = %d/%d" )
	ASCII(.ascii	",new w/h = %d/%d\012\000" )
	.space	3
.LC101:
	ASCII(.ascii	"MbWidth = %d, MbHeight = %d, don't support!\012\000" )
	.space	3
.LC102:
	ASCII(.ascii	"ERROR: allocate vhb\012\000" )
	.space	3
.LC103:
	ASCII(.ascii	"ERROR: get img buf err\012\000" )
.LC104:
	ASCII(.ascii	"dec_pts: %lld Usertag = %lld\012\000" )
	.space	2
.LC105:
	ASCII(.ascii	"-1 == VCTRL_GetChanIDByCtx() Err! \012\000" )
.LC106:
	ASCII(.ascii	"-----Pic %5d, type %d, struct %d-----\012\000" )
	.space	1
.LC107:
	ASCII(.ascii	"ERROR: err_level(%d) over ref_thr(%d)\012\000" )
	.space	1
.LC108:
	ASCII(.ascii	"ERROR: err_level(%d) over out_thr(%d)\012\000" )
	.space	1
.LC109:
	ASCII(.ascii	"SlcNum %d > %d Write slice msg failed\012\000" )
	.space	1
.LC110:
	ASCII(.ascii	"This slice's start mbn %d <= LastSliceFirstMb %d, W" )
	ASCII(.ascii	"rite slice msg failed\012\000" )
	.space	2
.LC111:
	ASCII(.ascii	"ERROR: paseHeader err\012\000" )
	.space	1
.LC112:
	ASCII(.ascii	"ERROR: AVS_PrepareDecode err\012\000" )
	.space	2
.LC113:
	ASCII(.ascii	"ERROR: AVS_StartDecode err\012\000" )
	.bss
	.align	2
	.type	g_tmp, %object
	.size	g_tmp, 1024
g_tmp:
	.space	1024
	.type	g_AvsCfg, %object
	.size	g_AvsCfg, 508
g_AvsCfg:
	.space	508
	.ident	"GCC: (gcc-4.9.4 + glibc-2.27 Build by czyong Mon Jul  2 18:10:52 CST 2018) 4.9.4"
	.section	.note.GNU-stack,"",%progbits
